From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

CANopen Basics for cRIO

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.

    Driver

  • NI-Industrial Communications for CANopen

Code and Documents

Attachment

Description

Overview


This example shows how to do basic CANopen operations like NMT, SDO and PDO with cRIO NI 985x modules.

One example shows how to write and read PDOs to write and read values to or from a CANopen device. The second example shows how to write and read SDOs to change or read device parameters.

Links

NI CANopen LabVIEW Library - CANopen library for PCI/PXI NI CAN hardware 

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