Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 rating:
 1.5 out of 5     Rate this Document

Setup an NI-CAN Real-Time Application in MAX

Hardware: Industrial Communications>>CAN

Problem:
I have a PXI NI-CAN module I want to use in my Real-Time system.  How do I configure the card in Measurement & Automation Explorer (MAX) and download the channels to the target PXI system from my host computer?

Solution:
The following are the steps to set up your CAN Real-Time system in MAX from your host PC:
  1. In MAX, go to Tools»NI-CAN»RT Hardware Configuration.  This will bring up a configuration window where you type in the target's IP address.  A second window will pop up with the NI-CAN card displayed in the PXI system. The ports on the card should be listed.

  2. Click on one of the ports, and then in the right window, you will see the Interface Number, Transceiver Mode, and Baud Rate. The Interface Number is the number you will use for your applications. You can right click on the port and select Properties to configure the Interface Number and all the other settings like you normally do in MAX.





  3. Leave this window open and start LabVIEW.

  4. Switch your LabVIEW execution target to the IP address of the target system. Now you can open an example and use the Interface number as it are shown in the RT Hardware Configuration Window. The VIs will be downloaded to the target when the Run button is selected.

To use your CAN Channels on your target machine, you will need to download them from your host machine.


  1. In MAX, go to My System»Data Neighborhood»CAN Channels.

  2. Right click on CAN Channels and select Send to RT System.

  3. If you want to use the CAN Channels currently set up in MAX on your host PC, choose Current MAX Configuration. If you want to use CAN Channels from a database file, choose Configuration Saved to a File and browse to the file location.

  4. Enter the target IP Address.

  5. Enter the FTP User and Password if these have been set up.

  6. Click Send.
This downloads all information under CAN Channels to the LabVIEW RT system, so you can execute the same LabVIEW VIs on the LabVIEW RT system as on the Windows system.

Note: The CAN channels need to be created and configured on the development machine.  You will not see them under Data Neighborhoods on the target PC.

Related Links:
KnowledgeBase 2FKI6MJT: Missing Dynamic Link Library Error while Configuring a CAN Card on an Real-Time System with a Host Computer

KnowledgeBase 3PFCC5LZ: NI-CAN RPC Server Dialog When Accessing NI-CAN (NI-DNET) RT Hardware Configuration

Attachments:





Report Date: 01/14/2005
Last Updated: 03/26/2009
Document ID: 3HDD8JIT

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit