Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Frame Channel Conversion Library

Solved!
Go to solution

Hello, I am trying to use the attached ncd file to read from a Series 2 board via the Conversion library but it's not working. I can load the ncd in Max and it read the channel fine.

 

What would cause this?

 

I am using the sample vi USBCANBasicInput.vi. It seems imposible to debug because it uses a dll for everything.

 

I am using version 1.0.3.

 

There are extended CAN messages. 

 

Thanks in advance,

Dustin

 

Download All
0 Kudos
Message 1 of 7
(9,060 Views)

Followup: More information

 

It seems to me the most likely cause is the Add selected channels vi is not returning any data in "table handle custer out".

 

So when the frame to channel read is performed nothing matches and nothing is returned.

 

 

Has anyone seen this library work or ran across this issue? Any ideas?

 

I can use the channel api vi's and everything works as expected.

 

I was reading some where that the frame dll needs to be in the system32 direcory or this will happen, but I have tried that one.

 

Thanks

Dustin

 

0 Kudos
Message 2 of 7
(9,046 Views)

Hi Dustin,

You could verify this by running highlight execution while running your program. This will show you if your hypothesis is correct.

Matt
Applications Engineer
National Instruments
0 Kudos
Message 3 of 7
(9,044 Views)

Matt, yes I believe the DLL is not parsing the selected messages properly so no CAN message is ever matched and thus received.

 

Could your engineering department look at my attachment and see if they agree or suggest an alternative solution.

 

There does not appear like there could be anything I am doing wrong, and there does not appear to be anyway to troubleshoot the dlls.

 

Thanks,

Dustin

0 Kudos
Message 4 of 7
(9,013 Views)
Solution
Accepted by topic author drogne

Dustin,

 

It was a pleasure speaking with you on the phone today.

 

It seems that the problem was in using extended arbitration ID's with the Frame Channel Conversion Library. Here are some examples that show how to use this library with extended arb ID's.

https://forums.ni.com/t5/Archive-TKB/CAN-Frame-Channel-Conversion-Library-USBCANBasicIntput-Extended...
https://forums.ni.com/t5/Example-Code/CAN-Frame-Channel-Conversion-Library-USBCANBasicOutput-Extende...

https://forums.ni.com/t5/Archive-TKB/Obtaining-CAN-Channel-Properties-with-Frame-Channel-Conversion/...

 

Regards

---

Peter Flores
Applications Engineer
Message 5 of 7
(9,001 Views)

Peter,

 

If this was added to the conversion library example VI's, then it would be pretty hard for most users to get tripped up on it.

 

I even knew about this trick and didn't think it applied in this case.

 

Just a thought.

 

Thanks again,

 

Dustin

 

 

 

 

 

 

 

 

 

0 Kudos
Message 6 of 7
(8,997 Views)

Here is an example I found on ni.com. It has a lot of code, and is for use with a cRIO, but it has LV source code for manually loading a database and converting Frames to Channels.

 

If you desire more functionality/flexibility, check it out...

 

Regards,

---

Peter Flores
Applications Engineer
0 Kudos
Message 7 of 7
(8,985 Views)