Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN & CANopen

Hi All
 
In one of the application i have to read the bus data and also the SDO message. So I am using CAN functions (Frame API) and CANopen functions in the same VI  .Problem is that for CAN frame API as well as CANopen functions i have to configure the CAN device (using both CAN Frame API & CANopen functions). So i am getting error.
 
Please tell me can we use CAN functions (Channel or Frame APIs) & CANopen Labview Library in the same VI. If yes then how ?
 
I had made one VI in which before entering the main loop i am configuring the CAN device using CAN frame API as well as  CANopen functions parallely. 
 
Please reply
 
Thanks in advance
J
0 Kudos
Message 1 of 2
(4,063 Views)

Hi,

Because the CANopen Library is based on the Frame API from CAN, it configures the CAN Port internaly. Because it creates a handle which is not useable with the Frame API functions, there is no way to use both Frame API and CANopen API on the same port.

DirkW

0 Kudos
Message 2 of 2
(4,049 Views)