Error When Running NI Industrial Communications for CANopen Example for the First Time

Updated Sep 29, 2023

Reported In

Hardware

  • CompactRIO Controller
  • NI-9881

Software

  • LabVIEW

Driver

  • NI-Industrial Communications for CANopen

Issue Details

When I tried to run and deploy NI CANopen example VI, error below appears stating that CANopen library does not exists on RT target.

𝙻𝚊𝚋𝚅𝙸𝙴𝚆: (𝙷𝚎𝚡 0𝚡𝟺𝟹𝟼) 𝙵𝚊𝚒𝚕𝚎𝚍 𝚝𝚘 𝚕𝚘𝚊𝚍 𝚜𝚑𝚊𝚛𝚎𝚍 𝚕𝚒𝚋𝚛𝚊𝚛𝚢 𝚗𝚒𝚌𝚊𝚗𝚘𝚙𝚎𝚗𝚕𝚟𝚊𝚙𝚒.*:𝚗𝚒𝙲𝚘𝚙𝚂𝚝𝚊𝚛𝚝:𝙲, 𝚙𝚕𝚎𝚊𝚜𝚎 𝚌𝚑𝚎𝚌𝚔 𝚒𝚏 𝚕𝚒𝚋𝚛𝚊𝚛𝚢 𝚎𝚡𝚒𝚜𝚝𝚜 𝚘𝚗 𝚁𝚃 𝚝𝚊𝚛𝚐𝚎𝚝.

Solution

The root issue to this problem is eitherΒ NI Industrial Communications for CANopenΒ (NI IndCom for CANopen) driver is not installed properly or the driver is corrupted on cRIO target. Please refer to some of the method below to resolve this issue.
​
  • Upgrade or install the Linux RT System ImageΒ thatΒ supportsΒ NI IndCom for CANopen driver and your cRIO target.
  • Please ensure that compatibleΒ version of softwareΒ is used with NI IndCom for CANopen.
  • Please ensure thatΒ all the requiredΒ software and driver to run NI IndCom for CANopen on your cRIO target is installed on the your hostΒ computer andΒ cRIO target.
  • Please check if NI IndCom for CANopen driver is installed properly on your cRIO target. This can be checked underΒ Software drop down menu atΒ your cRIO target in NI MAX or in the Remove section onΒ LabVIEW Real-Time Software Wizard. Please Select Add/Remove Software in NI MAX to launch theΒ LabVIEW Real-Time Software Wizard.
  • If all the method above has been checked, please reformat your cRIO target and reinstall all the required software. Please refer to this linkΒ or your device's manual for more information on how to reformat.

Additional Information

After installing all the software above and confirming NI IndCom for CANopen is properly installed on your cRIO target, please update the firmware onΒ NI 9881 module. Please refer to this link for more information. If the problem still persists, please feel free to create a technical support caseΒ or call NI.