Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Nov 12, 2008


Feedback


Yes No

Related Categories

Related Links - Developer Zone

CANopen Basics for cRIO

2 ratings | 1.00 out of 5
Print

Overview

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

Downloads

Filename: criocanopenbasic.zip
Requirements: View

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

FPGA CAN Engine with CANopen Protocol Reference Example - A more advanced example for CANopen and cRIO

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

Requirements


Filename: criocanopenbasic.zip

Software Requirements


Application Software: LabVIEW Full Development System 8.2
Language(s): LabVIEW

Hardware Requirements


Hardware Group: CompactRIO, Reconfigurable I/O (RIO)
Driver: NI-RIO 2.3

 
2 ratings | 1.00 out of 5
Print

Reader Comments | Submit a comment »

the project was not running for me. So I putted the timings on the Read PDO vi to solve the connection problem. But the main issue is given by the error terminal conected to the case structure on the FPGA vi. Because of a timeout error it avoid to reset the boolean Ready and so lock averything. Delete the case structure and it works again! Enjoy it! ;)
- Davide Galli, University of Bologna. davidegalli43@gmail.com - Dec 18, 2010

CANopen Basics problem solving
If the connection to your cRIO gerts lost using this example take a closer look at "Read PDO": - Place loop timing in both while loops - Program a timeout condition so the loops exit if no PDO is received Hope this helps
- Feb 10, 2009

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).