LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Channel to Frame API

Hi All,

 

In a bit of a jam...we're using CAN channel api to manage a few functions of a piece of hardware thats on a CAN bus.  Works great. Code is attached as a picture.

 

We are duplicating the system and have loaded the entire PC up and had to resort to a USB based CAN card that doesn't support channel API.  Yeah bad.

 

I found NI provides something called the " CAN Frame Channel Conversion Library 1.0.2" and have been trying to get it to work.  I'm not getting any results though...does anyone else have experience with this?  Is it possible to modify all our vi's that are CAN based like the one attached?

 

Talk to me like a little kid on this one, CAN at frame level is completely new to me.

 

I am able to watch all the data on the bus via MAX and the bus monitor, so I thought this would be more a labview board type question.

 

Thanks!

LV7.1, LV8.5, LV2014/15/16
Message 1 of 3
(3,007 Views)

Hi there

 

"CAN Frame Channel Conversion Library 1.0.2" and have been trying to get it to work.  I'm not getting any results though..."

 

Do you get any error messages? Can you please provide more information about the problems at bringing it to work?

 

 

Or take a look at the examples shipped with NI-CAN:

 

Help\Find Examples\Hardware Input and Output\CAN\Frame API\CAN receive/transmit

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 3
(2,989 Views)

 

Hi 
I didn't know there is a genuine conversion library 😉 
I've been recently doing some work as vacation replacement for a colleague that had a CAN interface for a data logger.
Since the channel API is relatively slow the concept was to log everything in frame API and later convert it to channel by passing it through a virtual CAN bus. This is provided by NI at "ports" 255 and 254 or something like that. You should check the help docu which is not too bad.
The only caveat was that the simulated CAN does by default also simulate delays and transmission time on the bus, you have to explicitly set this to no or zero or something. On TX and RX this works differently one is a property node the other a method. and you have to be precise with the sequence of doing what.

But in the end it worked.
Unfortunately the program is now on the customer's PC. So I cannot be any more precise on the how-to-dos.

I hope it helped just a bit
Gabi

 

7.1 -- 2013
CLA
0 Kudos
Message 3 of 3
(2,982 Views)