Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

extract text data from dbc on the fly

Hi All,

 

I am currently setting up a testsystem for a CAN based project with LV7.1 and Teststand 4.

I have my PXI8461 CAN card sending and receiving CAN messages fine but I wish to perform some work on all channel ( signal ) information before passing it up to Teststand for analysis.

For my Teststand purposes it is preferable to work with text, for example if the DUT has a button pressed then the appropriate signal gets sent up to Teststand as "On" or "Off" etc rather than 1 and 0. ( CANoe has this feature and the LDF driver kit for LIN in Labview also )

This is very useful for Teststand when checking test conditions rather than trying to equate a test with a number, so tests can be written like if result = "Ignition On" then Pass else Fail.

The dbc file I have contains this text representation of data but is there any VI which can be ran after a Read Channel which will convert Channel data to text ?

 

Thanks,

Mike 

 

0 Kudos
Message 1 of 2
(6,340 Views)

Hi Mike,

 

Thanks for the post! and I hope your well today.

 

Im not very familiar with the CAN palette, but Im sure we could use Lower Level VIs to build this functionality.

 

So, when on the fly, the CAN message is a number (0 or 1) and then convert it using a case structure?

 

I imagine this issue is more complex then I have caught on so far, so please, maybe some example code etc would help.

 

Kind Regards,

James.

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 2
(6,330 Views)