10-20-2026 08:51 AM
Hi,
I'm trying to post-process a TDMS file generated by the NI-XNET Bus Monitor.
The TDMS is brutal. It only contains:
The channel also contains the following properties:
NI_ChannelLength
NI_DataType
NI_network_frame_byte_order
NI_network_frame_version
NI_network_protocol
NI_network_content = memory.BMCluster
Initially, I assumed the TDMS contained the raw data captured from the CAN bus and that I could reconstruct the CAN frames by parsing the byte stream.
However, the property
NI_network_content = memory.BMCluster
made me wonder whether the channel actually contains a serialized LabVIEW a cluster, rather than raw CAN frame data. If that is the case, I would expect there to be a typedef or API capable of deserializing the content back into the original Bus Monitor data structures, but I have not been able to find any documentation.
My questions are:
memory.BMCluster?Solved! Go to Solution.
10-20-2026 09:08 AM - edited 10-20-2026 09:10 AM
The log file generated by the Bus Monitor is a type of streamed format. The bytes are just put into an array, and that array is written. To decode it back into frames you need to be able to know how to interpret the bytes. I believe there is several example files buried in LabVIEW that document the format a bit.
I made a CAN File IO package and posted it on my CAN blog here. Here is the main landing page, and here is the page on File IO stuff. In there is some VIs for reading and writing CAN Frames to TDMS files. There is lots of room for improvements in storing and reading back CAN frames in a TDMS file. What NI provided is a fine first step but it just isn't efficient, and isn't human readable. The BLF format by Vector has some basic compression, and in general CAN frames compress well because they often have repeating bytes from the same frame. Still I'd recommend looking at the CAN File IO package and try to read by a TDMS file generated from the Bus Monitor. It should be able to pull out the frames and you can look at the source to get an understanding of how it works. In writing data back using my tool I have a few options, but I think most are still compatible with the Bus Monitor format, which is important if you ever want to ingest them through something like DIAdem. I've been putting some effort into cleaning up these CAN packages and putting them on VIPM.IO for greater visibility but just haven't finished yet.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord