Parse CAN/XNET Frames Into TDMS File

Updated May 3, 2018

Reported In

Software

  • LabVIEW Full
  • LabVIEW Professional
  • LabVIEW Base

Driver

  • NI-XNET

Issue Details

I want to log CAN data into a TDMS file, but I don't want to parse the XML by hand. Can I use TDMS VIs to log this data?

Solution

Yes, you can use a TDMS file to log CAN frames acquired using NI-XNET. This can be seen in the LabVIEW example CAN Input Stream to TDMS Logfile.vi. Locate the example by going to the NI Example Finder and then navigating to Hardware Input and Output » CAN » NI-XNET » Logging and Replay » CAN Input Stram to TDMS Logfile.vi. 

You can also log CAN frames by using the Bus Monitor, which requires no extra programming and is detailed in this article: Log Bus Traffic with NI-XNET Bus Monitor While Running NI-XNET Application

WAS THIS ARTICLE HELPFUL?

Not Helpful