LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

binary to ascii file conversion, save as ascii. We've managed to collect the data (obviously we're rookies with Labview), we can save an binary data file(need binary for collection speed), how can we convert this into a ascii file to read by excel?

If you have an array of binary values output by your application, you can convert it using Array to Spreadsheet String.vi (found in the String palette) and then write the string to a file.
More details about this function in the on-line help for the function.
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,432 Views)
This only works if you are just interested in the binary number of the ADC. I would assume you want engineering units, which means a conversion would be in order. Are you looking for engineering units?

Mark
0 Kudos
Message 3 of 5
(3,432 Views)
You can use Array to Spreadsheet String.vi regardless of the type of data to manage, since the vi accepts both integers and floating point arrays as an input.
And regardless the type of input, the output string format depends on the format string wired to the vi (that is: you can output a string representing floating point numbers by using "%f" format string event if the input array is made of integers, and you can output a string of integers by using "%d" format string even if the input array is made of doubles: they will be rounded to integers).
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 5
(3,432 Views)