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
gom790
Member
Member
on

I can't find out where USB_CANopenWriteSDO+.vi is .....

Please, let me know where file is ?    

pflores
NI Employee (retired)
on

That VI is in the library available at CANopen Basics for USB 8473.

Sorry for the confusion!

---

Peter Flores
Applications Engineer
gom790
Member
Member
on

I search for the file in the library at CANopen Basics for USB 8473 but i don't look for the file,,,....

I think that only USB_CANopenWriteSDO. vi exist. not USB_CANopenWriteSDO+

Could you give me that file or upload to this website ?

Sorry for ask you that problem....

pflores
NI Employee (retired)
on

You are absolutely right

I forgot that I needed to create this new VI to support the new finctionality. The attached llb file should include everything you need.

---

Peter Flores
Applications Engineer
gom790
Member
Member
on

Thank you for uploading this file .....

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 ?