CAN and LIN Hardware
Windows System
National Instruments hardware for CAN is used by both NI-CAN and NI-DNET (DeviceNet) software. National Instruments hardware for LIN is used only by NI-CAN software.
CAN and LIN hardware is displayed under Devices and Interfaces in MAX. All NI hardware is installed automatically and 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 hardware.
Testing CAN and LIN Hardware
To verify installation of your CAN or LIN hardware, right-click on the CAN or LIN interface, then select Self-test in MAX. If the self test passes, the hardware icon shows a checkmark. If the self test fails, the hardware icon shows a ? mark, and the Test Status in the right pane describes the problem.
It is also possible to test all CAN and LIN hardware in the system at once by selecting Tools»»NI-CAN»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 or LIN hardware. 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 NI-CAN driver.
Memory Resource Conflict
This error occurs if the memory resource assigned to a CAN or LIN 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 or LIN 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 or LIN 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 or LIN hardware. If you get this error, write down the numeric code shown with the error, and contact National Instruments.
Configuring CAN and LIN Ports
The physical ports of the CAN and LIN hardware are listed under the hardware'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 PXI CAN cards on a LabVIEW RT system, use the RT Hardware Configuration Utility in Tools»NI-CAN»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.