LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI XNET does not read CAN database frame correctly

As seen in the picture, I have a CAN database file with frames composed of signals. I read this file using the example program- Exploring database with tree found under NI-XNET. Although the program reads all frames, the signals under Huber2 is shuffled and not read according to frame definition as in the db file next to it. This happens wherever I put these 3 signals(SetPoint flow, Pressure and Temperature), they are shuffled. Other frames are read correctly. 

 

I know I could sort it out using start bit for the signals, however I am confused as to why this happens with just these 3 signals. 

Can someone enlighten me?canDB.JPG

 

0 Kudos
Message 1 of 7
(1,529 Views)

Hi GoKu,

 

looks like the signals are sorted alphabetically…

 

Are you using standard CAN or CAN-FD?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(1,522 Views)

List is alphabetical?

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 7
(1,519 Views)
I agree, the list in LabVIEW is sorted alphabetically. Obviously SetPoint_Pressure is parsed correctly, starting at bit 64 with a length of 64.
Regards, Jens
Kudos are welcome...
0 Kudos
Message 4 of 7
(1,513 Views)

Yeah I'm using CAN FD

 

It is sorted such that Upper case has precedence over lower case

0 Kudos
Message 5 of 7
(1,485 Views)

Hi GoKu,

 

             I am also working on a similar project with you, but it is not familiar to use xnet to load DBC to parse can data. Can you share the routine with me?

            

Thank you very much. Best wishes

0 Kudos
Message 6 of 7
(1,411 Views)

Hey, You can find the VI in the attachment. You can find more functionality in the example finder

0 Kudos
Message 7 of 7
(1,383 Views)