LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert SD card .bin to ASCII file

Hi, i'm using a CompactRIO and the 9802 SD card slot which records a .bin file.  Is there any programs out there to convert binary to ascii data, preferrably in .csv format.  I would like to be able to just pull the sd card out, stick it in a laptop which doesn't have labview installed, and read the data.

 

--Thanks.

0 Kudos
Message 1 of 2
(2,483 Views)

.bin implies binary.  What VI do you have running on the compact RIO that created the binary file?  You have to know how the data was saved.  Was it just double precision floating point numbers?  What it something more complicated like a cluster?  You can't convert from binary to a text based file unless you know how the data was saved.  Then what you need to do is create a program that will read the binary data, interpret it the same way as it was written, then write the data out to a text file.

 

Look in the example finder for .vi's that show how to read and write binary files.  You may need to create a VI that does what you need, and then build it into an .exe so that it can be run on the laptop without the LabVIEW enviroment installed.  (You would still have to install a LabVIEW runtime engine.)  Alternatively, you could use another programming environment, (C, Visual Basic, even Visual Basic in an Excel macro environment) to read the data and interpret it.

0 Kudos
Message 2 of 2
(2,477 Views)