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
(239 Views)

Hi GoKu,

 

looks like the signals are sorted alphabetically…

 

Are you using standard CAN or CAN-FD?

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 2 of 7
(232 Views)

List is alphabetical?

G# - Award winning reference based OOP for LV, for free! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 7
(229 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
(223 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
(195 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
(121 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
(93 Views)