Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

examples for canopen library

Im new to the canopen and even can.

I have purchased a NI high speed xnet card and the canopen libarary and installed them with xnet 1.

 

Ive struggled with this so far and believe a better background might help.

I cant seem to find any examples to run for canopen, or even a general guide for CAN.

Generally NI is really good at giving basic tutorials to read and hello world type examples.

Even an example i cant run, but shows what the parameters are being passed for and why would be great.

 

The goal is to be able to send a command to get a position of an amplifer, and then read it back.

Preferibly with PDO as there are timing constraints.

 

I did find a few examples in the userforum, in llb format, but they were just sub sections of program.

I really need to see the entire working program, even if it does smething very simple.

 

thanks

 

Message Edited by jimmyinct3 on 11-01-2009 03:06 PM
0 Kudos
Message 1 of 2
(6,673 Views)

Jimmy,

 

The NI-CAN Hardware and Software Manual gives a comprehensive overview of the CAN protocol and how to interface with NI hardware using the NI-CAN API.

 

To clarify your interface options, keep in mind that you are using the newer XNET hardware. This means that to use your card, you have the choice of using either the:

1. new NI-XNET drivers and API

2. or the NI-CAN drivers + NI-CAN Compatibility Layer + NI-XNET drivers

Since you wish to use the CANOpen LabVIEW Library, you are using the second option as it is built on the NI-CAN interface. This means you need to ensure you have the latest NI-XNET drivers and NI-CAN drivers in order to work with the CANOpen LabVIEW Library for your device.

---

Peter Flores
Applications Engineer
0 Kudos
Message 2 of 2
(6,661 Views)