Use the AUTOSAR Cruise Control sample to demonstrate automatic harnessing of an AUTOSAR SWC. For more detail about the SWCs, see AUTOSAR Cruise Control Composition.

1.In MxVDev, select Help->Copy Samples to copy the project files to the sample folder (default: MxSuiteSamples). See Sample Projects Overview.

2.Open the MxVDev project in the VMCCruiseControl subfolder.

3.Disconnect the Harness.

4.Open MxTransIt, then use the Toolbox to create a Virtual Microcontroller (VMC) Transform.

Note: The purpose of this sample is to demonstrate creating and harnessing a VMC. If there is already a VMC present, delete it, and create a new one before proceeding.

5.Click the Create VMC Visual Studio Solution verb at the bottom of the Properties box.


6.Click 3dots_button to select the project folder. The wizard creates a subfolder named SUT for the VMC Visual Studio solution.



7.Select Configure VMC to automatically harness AUTOSAR Software Components based on ARXML extract files.

8.Leave the SW-C source code path box empty.

9.Click the Add button and browse to select the ARXML files in the ARXML subfolder of the sample folder (\AUTOSARCruiseControl\SourceCodeAndArxmls\ARXML).
The detected Software Components are automatically displayed. If the Transform is unable to detect these values, it usually indicates an unsupported version or invalid ARXML file.

10.Leave the Add OS Configuration box empty.

11.Click OK.
The system creates the following files in the SUT\MSVC2010\MxVHarness subfolder in the project folder:






12.The system creates the following files in the SUT folder at \SUT\MSVC2010\MxVRTE












13.Copy the Software Component source files (all the files). These paths are relative to the project folder.

From the \AUTOSARCruiseControl\SourceCodeAndArxmls\SourceCode subfolder in the sample folder

To the \VMCCruiseControl\SUT\MSVC2010\SourceCode subfolder. If there are files in the subfolder, overwrite them.

14.Open the Visual Studio solution, MxVDevAutosar.sln, in VMCCruiseControl\SUT. If the Retarget Projects dialog opens, click OK to upgrade the solution to your version of Visual Studio.
Note: Because all the source files are in one folder, it is not necessary to set up the Include directories.

15.Select Add->Existing Item and select all the source files from the \SUT\MSVC2010\SourceCode folder.


16.Be sure the Harness is disconnected.

17.Press F6 or use the Build command to build the solution. After a successful build, close Visual Studio.

18.In MxTransIt,  click on the VMC Transform, then click the Connect/Reconnect verb to display the ports.

19.Right-click on the Transform and select Export Ports.


20.Select all the ports (Signals). Click Save to save the Harness.

21.Close MxTransIt.

22.In MxVDev:

a.Connect the Harness.

b.Connect the Signals.

c.Disconnect Signals that are marked missing.

23.Run the LetsRide.mxs scenario.




1>LINK : fatal error LNK1201: error writing to program database 'C:\Users\paulm\Documents\MxSuiteSamples\AUTOSARCruiseControl\VMCCruiseControl\SUT\MxVTarget.pdb'; check for insufficient disk space, invalid path, or insufficient privilege


This error can occur if the MxVTarget.pdb file is locked by the MxRTE process. To fix this problem, either close MxVDev or close the MxRTE window shown here:

MxRTE Window

MxRTE Window


Related Topics:


AUTOSAR Cruise Control Composition

Sample Projects Overview