Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Creating Mappings for National Instruments CAN Interfaces (Simulation Interface Toolkit)

LabVIEW Simulation Interface Toolkit 4.0 Help
August 2007

NI Part Number:
371504C-01

»View Product Info

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.
  1. Specify the model DLL and real-time (RT) target.
  2. Click the Hardware I/O tab of the SIT Connection Manager dialog box.
  3. Place a checkmark in the NI CAN checkbox.
  4. 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.
  5. Select the CAN interface you want to configure and click the Add/Edit File button.
  6. 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.
  7. Click the Next button.
  8. 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.
  9. Select a model DLL input or output from the Model Inputs/Outputs tree.
  10. 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.
  11. 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.
  12. 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.
  13. Click the Build Model Files button to generate the driver VI for the configuration.
  14. Click the OK button to generate the block diagram code for the host VI.
Previous: Specifying the Model DLL and Execution Host Next: Running a Simulation

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit