Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 67078

NI-XNET and logging CAN messages to TDMS file

$
0
0

Trying to follow the documentation trail provided by NI and feel like I am going round in circles.

 

I thought logging CAN messages to a TDMS file would be a bit straight forward! Our issue is we don't yet have .dbc files so want to log the CAN messages anyway (undecoded if you like) and decode them later when we do get the dbc.

 

From what I can gather you set up the NI 9862 module in MAX and you can assign alias's and things and then you refer back to this set up from the VI you make.

 

In the VI do you go for creating a session (so Frame Input Stream mode session) and then wire that on through to the XNET Read.vi (CAN Frame). That, according to the manual, would look like it would spit out an array with msg ID, time stamp, message payload etc. Is that easy enough then to feed into a TDMS writer?

 

Would Frame Input Single-Point mode be better so I could sample all CAN messages at a set interval (instead of just having them come as and when, obviously on a vehicle CAN messages are transmitted at different rates, usually dependent on how important the message is). 

 

Many thanks in advance for any advice proffered. 


Viewing all articles
Browse latest Browse all 67078

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>