Example Code

CANopen SDO example for USB CAN

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • CAN Interface Device

Code and Documents

Attachment

Description

 

Functional Description

This VI is an example of how to read and write to a CANopen network using SDO. This is an extension of the library from the DevZone article, CANopen Basics for USB 8473, that has some more examples on using SDO and PDO.

 

If you are using a non-USB National Instruments CAN interface, it is STRONGLY recommended to use the NI CANopen LabVIEW Library (not compatible with USB-CAN devices).

 

Required Software

CANopen Basics for USB 8473

 

ReadWriteRead.png

 

Helpful Links

CANopen - Wikipedia, the free encyclopedia

CANopen USA

 

Update

Added the modified llb file to include this VI along with the new USB_CANopenWriteSDO+.vi

 

---

Peter Flores
Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Chris2000
Member
Member
on

I have Problems with the Subvis. In there are DLL calls but i don't know where the DLL are ?

 

ncConfigCANNet.vi

DLL ncConfig ?