Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Frame to channel conversion using CVI

Hi,

 

I am using USB-8473 can bus modules in a project.  I would like to display the channel data by using the Frame to Channel conversion library.  Is there a version that can be used with CVI?  I am using CVI 9.1

 

Thanks

John

0 Kudos
Message 1 of 11
(8,230 Views)

Hello John,

 

Unfortunately, an equivalent Library does not exist in CVI.

 

With that said, you may be able to dig into the LabVIEW VI's of the Frame Channel Conversion Library and pull the function prototypes from the Call Library Function Node on the block diagram of each one. With this information, you could call the functions from the dll (usually located here: C:\Program Files\National Instruments\NI-CAN\CAN Frame Channel Conversion Library 1.0.2\Drivers) from within C.

 

I hope this helps,

 

Anna K.

National Instruments
0 Kudos
Message 2 of 11
(8,207 Views)

Anna,

 

Is there a reason that National Instruments doesn't give the support to the CVI customer base that it gives to the LabView customers?

I would think that the support answer would not be that I should "dig through" the VI to figure out what is going on...This is not very helpful.

 

Regards

John

0 Kudos
Message 3 of 11
(8,192 Views)

Hello John,

 

I do see what you mean, the VIs actually just call into a C dll. I dowloaded to the Library after reading your post and opened up the VIs. It looks like each is just a small wrapper around Call library funciton node. It is definately silly that the VIs are so well documented but not the functions of the dll itself. Based on browsing a few of these VIs, it would be pretty easy to write the wrapping code in C and call all the same functions of frchconvlib.dll. 

 

I will look into whether this library was written by a third party or NI, and if its NI property I would like to expose the dll itself to users like yourself. 

 

I do apologize that this is the only current solution. I will let you know what I find out.

 

This kind of feedback it important to receive, so thank you for voicing you concern.

 

Best,

 

Anna K.

National Instruments
0 Kudos
Message 4 of 11
(8,170 Views)

Anna

 

Thank you for the prompt reply.  I do appreciate you looking into supporting the CVI users.

 

Thank you

John

0 Kudos
Message 5 of 11
(8,168 Views)

Hello, 

 

I have the same problem in 2018 ... 

But I need to convert channels to CAN frame. 

 

Any thing is done for CVI since 2010 ? 

0 Kudos
Message 6 of 11
(3,895 Views)

I'm not a CVI user but it looks like XNet is supported on CVI, and XNet has a conversion session.  In LabVIEW it is pretty easy to use this conversion session to go from frames to signals and signals to frames.  I thought I could do better on the performance front so I ended re-writing the conversion session to be in pure G.  I know it can't be brought into CVI but you could look at the source and understand how the conversion work, and see the XNet calls to get scaling information.

0 Kudos
Message 7 of 11
(3,892 Views)

Thank you.

 

Yes, XNet is supported on CVI.

The problem is that under CVI we don't have all XNET functions/tools like LabVIEW. It's really disappointing. 

0 Kudos
Message 8 of 11
(3,888 Views)

What specifically is missing in CVI?

0 Kudos
Message 9 of 11
(3,877 Views)

A way to get bytes of CAN frame (as written in the bus)  using only the DBC file and data user values. 

0 Kudos
Message 10 of 11
(3,874 Views)