LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read Delimited Spreadsheet Not Working For VI's Added to a Real-Time CompactRio Target Within a Project

Solved!
Go to solution
Solution
Accepted by topic author viamotors

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.

0 Kudos
Message 11 of 14
(568 Views)

Thank you for sharing that observation. I completely missed it.

0 Kudos
Message 12 of 14
(551 Views)

Thank you, that explains it all! 

0 Kudos
Message 13 of 14
(550 Views)

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:

change target.PNG

 

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!

0 Kudos
Message 14 of 14
(538 Views)