Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66852

read mixed type C binary file

$
0
0

Hello,

 

I have script program, what can output the desired data in csv ASCII, and in binary file format. Sometimes not all of the valuable digits are printed out to the csv file, therefore I need to read out the data from the binary file.

I have atttached what I have so far, and also a small csv and the bin file, containing the same data.

 

I can read out the first integer value (2), but the second data type is a string, and I cannot read this one out...I get end of file error, I guess because the type is wrong, or I guess I have to read the data out in a different way?

 

Based what I see in the csv file, the structure of the binary should be the following:

integer, string, float, and repeated again every line in the csv...?

 

thanks for advice!

 

ps.: the website does not allow me to upload the files, so here they are:

https://dl.dropboxusercontent.com/u/8148153/Read%20Binary%20File.vi

https://dl.dropboxusercontent.com/u/8148153/init_in_water.csv

https://dl.dropboxusercontent.com/u/8148153/init_in_water.bin


Viewing all articles
Browse latest Browse all 66852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>