Most CAPL scripts can be used with the MxSuite with only minor modifications. Because CAPL is very similar to C, you can copy CAPL code into a SIL Easy Transform, an MxVMC, a Custom Transform, or in a very simple case, into a C# Snippet Transform.

The script logic should be the same. The method for creating Transitions varies depending on the Transform:

MxVMC

When using an MxVMC, instead of calling the CAPL API, create a transition on a port using the MxVMC µC Library CAN Sub-System. For a simple example, see the CAN.c file in SUT/App folder of the Turn Door Sample Project.

SIL Easy, Custom Transform, or C# Snippet

These Transforms connect to a CAN bus using the CAN Transmit and Receive Driver Transforms as shown in this example. Set the value of the Transition in the Transform and transmit it to the bus as described in Putting a Signal on a CAN Bus.

Selecting a Transform

Users more comfortable with C/C++ should choose the SIL Easy or MxVMC.

Users more comfortable with C#/.NET should choose the C# Snippet or a Custom Transform.

When converting simple scripts that may only be a few lines, the SIL Easy or C# Snippet will likely suffice.

When converting complex scripts that may work more like a real ECU, the MxVMC or a Custom Transform may be required.

For a more detailed comparison of these Transforms, see:

User-Defined Transforms

Related Topics:

User-Defined Transforms

SIL Easy

MxVMC - The Virtual MicroController

Custom Transform Development

C# Snippet Transform

CAN Receive Driver

CAN Transmit Driver

CAN Overview