07-30-2021 07:44 AM
If you are using the version of BLF reading and writing that uses the BinLog.dll then yes you will only be able to run those functions on Windows because they are built binaries for that platform. However the Read/Write BLF functions I provided actually can read and write BLF files using zlib compression instead. This does require the OpenG zip toolkit. Last I knew there was an unreleased version of this that supports the Linux RT target.
So it is possible, but in general I'd suggest sticking to Windows for reading and writing BLFs if you can. In my test setup I log all CAN traffic to a TDMS file on the RT target, then transfer it over using FTP, and convert it to BLF on Windows. LabVIEW has a few examples for logging CAN data to a TDMS file in the Help >> Find Examples. Search for TDMS CAN. This should make the same TDMS file that the XNet Bus Monitor can make.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-02-2021 03:39 PM
Thank you for sharing that observation. I completely missed it.
08-02-2021 03:40 PM
Thank you, that explains it all!
08-02-2021 04:56 PM
Hi,
Thanks again for all your help.
I have more question I could use your help with.
So based on your suggestion, I was able to -
1) create a .tdms file in real time (on crio target)
2) convert the .tdms file to .blf (on windows target)
Each task is achieved in a separate VI. You will see in this snippet how the 2 VI's are arranged within the project:
There is also an intermediate step between these 2 that requires me to manually copy the tdms file created in the first vi from the remote directory it gets saved to, to a directory on the host computer (I am using WinSCP for that).
I was wondering if there was a way to "call" the Convert .tdms to .blf vi from within the Create tdms file in real time vi since I would like to have a single program that would produce a .blf file as its final deliverable. I know there is a way to programmatically transfer files between the host and real time systems so the intermediate step should be take care of through that.
Looking forward to hearing from you.
Thank you!