Complete the following steps to create mappings between National Instruments CAN interfaces and a model DLL.
 |
Note Before you begin this procedure, you must have a .dbc or .ncd file for each CAN interface you want to use in the simulation. These files define the channels on a CAN bus. |
- Specify the model DLL and real-time (RT) target.
- Click the Hardware I/O tab of the SIT Connection Manager dialog box.
- Place a checkmark in the NI CAN checkbox.
- Click the Configure NI CAN button to launch the Configure CAN Interfaces wizard. When you launch this wizard, the LabVIEW Simulation Interface Toolkit queries the RT target for installed CAN interfaces.
- Select the CAN interface you want to configure and click the Add/Edit File button.
- Choose the .dbc or .ncd file associated with the CAN interface and click the OK button. The CAN Interfaces table updates to show the file you added. You can add multiple CAN interfaces as long as you specify a .dbc or .ncd file for each interface.
- Click the Next button.
- Choose a CAN channel from the CAN Channels tree.
 |
Note The Simulation Interface Toolkit cannot distinguish between input channels and output channels in a .dbc or .ncd file. You must know which channels are inputs and which channels are outputs. |
- Select a model DLL input or output from the Model Inputs/Outputs tree.
- Click the Add button to add the mapping. The Current Mappings table updates to show the mapping you added.
 |
Note To remove a mapping, select a row in the Current Mappings table and click the Remove button. To remove all mappings, click the Clear button. |
- Click the Finish button to launch the File Transfer Options for CAN Files dialog box. Use this dialog box to specify how to transfer any .dbc and/or .ncd files to the RT target.
- Choose the option you want and click the OK button to return to the SIT Connection Manager dialog box. The Hardware Mappings table updates to show any mappings you made.
- Click the Build Model Files button to generate the driver VI for the configuration.
- Click the OK button to generate the block diagram code for the host VI.