In this procedure, we show you how to use MxTransIt to create a Test Harness with multiple Virtual MicroControllers. For an example of a completed project, see the Multi-VMC sample project.
To work with an MxVMC, the version of the MxSuite you are using must be set as the current version. If you are not sure, use one of the procedures in Set Current Version.
1.Create a new project in MxVDev. Follow the wizard until you see this form: 2.Select Custom SUT and MxClock. For information on clocks, see Real Time/Accelerated Time. 3.Check Start MxTransIt on Finish. 4.Click the Finish button. MxTransIt opens. Note: If your project contains more than one VMC, create a subfolder for each VMC: a.Use Windows Explorer to navigate to your Project folder and click the new folder button ( b.Create a new folder for each VMC to be created. In this example, we use folders One and Two. c.After you've created the folders, return to MxTransIt. |
Select the compiler to use:
|
There are 3 ways to add ports to a VMC: •AUTOSAR - If your SWC is AUTOSAR-compliant and ARXML files are available, the VMC can automatically generate the Harness. See AUTOSAR Testing. •Guided Harnessing - Use the Guided Harnessing tool to select the Signals to use for testing the SWC. •Manually - The AppIF.c is a C code file and can be written or revised by a programmer. This may be the best way when working with an existing project or a non-standard interface. For details, see Manual Harnessing.
For more detail on harnessing, see Linking your code with the MxVMC. |
There are two ways to export ports from an MxVMC:
|
Use the procedure in Connecting Signals to connect the ports to MxVDev. |
Use the Properties box to set properties which control the behavior of the MxVMC: IsSutBy default, IsSut = True and the MxVMC is a Connector Transform. All Connector Transforms in the Test Harness logically execute in parallel. Interconnections between Connector Transforms require a Delay Transform. Set IsSut to False to treat the MxVMC as a Signal Processing Transform. SP Transforms are ticked sequentially. Inport values are read and outport values are transmitted in a single tick. Auto Export SignalsUse this property to choose the method of exporting ports: manual or automatic. False (manual) is the default. |
Linking your code with the MxVMC