NI-CAN not working in LabVIEW/CVI/Visual Studio

Updated May 31, 2018

Reported In

Software

  • LabVIEW Base
  • LabVIEW Full
  • LabVIEW Professional
  • LabWindows/CVI Base
  • LabWindows/CVI Full
  • Measurement Studio

Driver

  • NI-CAN

Other

Non-National Instruments ADE:
Visual Studio

Issue Details

I installed the NI-CAN driver set to use my new hardware, but can't find the NI-CAN API in my ADE (Application Development Environment). My hardware is appearing in MAX, but when I attempt to load a CAN example in, for example LabVIEW, the software asks me to designate a file path to several subVIs, but I cannot locate them on my computer.

Solution

One of two root causes could be leading to this issue. 

1. Using 64-bit LabVIEW/CVI/Visual Studio
While the NI-CAN driver set is compatible with many 64-bit operating systems, it is not compatible with 64-bit programming environments, including LabVIEW/CVI/Visual Studio. To avoid this, you can run 32-bit LabVIEW on your 64-bit OS to access the CAN driver functions. You may need to uninstall LabVIEW 64-bit before installing 32-bit to ensure that the NI-CAN driver functions correctly.


2. Incorrect order of installation
If you are using the 32-bit version of LabVIEW/CVI/Visual Studio and the NI-CAN associated functions are not loading, then the problem may be that the NI-CAN drivers were installed prior to LabVIEW, or that LabVIEW has been reinstalled since the last time the drivers were updated.  This can result in the two not being able to synchronize correctly. You can fix this by following the instructions in this KnowledgeBase article about Installation Order for Multiple NI Software Products.
 

Additional Information

The driver sets currently supported by LabVIEW 64-bit are NI-VISA, NI-GPIB, NI-DAQmx, and NI-IMAQ. 

WAS THIS ARTICLE HELPFUL?

Not Helpful