CAN Cards
Windows System
National Instruments hardware for the Controller Area Network (CAN) is used by both NI-CAN and NI-DNET (DeviceNet) software.
CAN cards are displayed under Devices and Interfaces in MAX. All cards are installed automatically and are displayed when MAX refreshes its configuration. You can refresh MAX by pressing <F5>.
Windows automatically assigns the resources (interrupt number and memory range) for the cards.
Testing CAN Cards
To verify installation of your CAN hardware, right-click on the CAN card, then select Self-test. If the self test passes, the card icon shows a checkmark. If the self test fails, the card icon shows a ? mark, and the Test Status in the right pane describes the problem.
It is also possible to test all CAN cards in the system at once by selecting Tools»NI-DNET»Test All Local Cards in the main menu.
Troubleshooting Self Test Failures
The following sections explain common error messages generated by the Self Test.
Application In Use
This error occurs if you are running an application that is using the CAN card. The self test aborts to avoid adversely affecting your application. Before running the self test, exit all applications that use NI-CAN or NI-DNET. If you are using LabVIEW, you may need to exit LabVIEW to unload the driver.
Memory Resource Conflict
This error occurs if the memory resource assigned to a CAN card conflicts with the memory resources being used by other devices in the system. Resource conflicts typically occur when your system contains legacy boards that use resources not properly reserved with the Device Manager. If a resource conflict exists, write down the memory resource that caused the conflict and refer to the documentation for your Windows operating system for instructions on how to use the Device Manager to reserve memory resources for legacy boards. After the conflict has been resolved, run the Self Test again.
Interrupt Resource Conflict
This error occurs if the interrupt resource assigned to a CAN card conflicts with the interrupt resources being used by other devices in the system. Resource conflicts typically occur when your system contains legacy boards that use resources not properly reserved with the Device Manager. If a resource conflict exists, write down the interrupt resource that caused the conflict and refer to the documentation for your Windows operating system for instructions on how to use the Device Manager to reserve interrupt resources for legacy boards. After the conflict has been resolved, run the Self Test again.
NI-CAN Software Problem Encountered
This error occurs if the Self Test detects that it is unable to communicate correctly with the CAN hardware using the installed NI-CAN or NI-DNET software. If you get this error, shut down your computer, restart it, and run the Self Test again.
If the error continues after restart, uninstall NI-CAN and NI-DNET, and then reinstall.
NI-CAN Hardware Problem Encountered
This error occurs if the Self Test detects a defect in the CAN hardware. If you get this error, write down the numeric code shown with the error, and contact National Instruments.
Configuring CAN Ports
The physical ports of each CAN card are listed under the card's name. To configure software properties for each port, right-click on the port and select Properties.
For more information on configuration, refer to Port Properties Dialog Box.
For more information on changing the representation of a CAN card in MAX between NI-CAN and NI-DNET, refer to Protocol Dialog Box.
LabVIEW Real-Time (RT) System
To test and configure CAN cards on a LabVIEW RT system, use the RT Hardware Configuration Utility in Tools»NI-DNET»RT Hardware Configuration. The card and port configuration in this utility is similar to Devices and Interfaces under Windows. For more information, refer to LabVIEW RT Configuration.