LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to convert data from binary to ascii format while running program.

I am reading 10,000 samples per second from 8 channels for approxiomately 5-10 seconds and I am having to save my data in binary form so that I get all data without bogging down my computer. I need to find a way to convert this data to ASCII format while the program is running at a slower sampling rate so that I can display this data to a graph on my user interface.
0 Kudos
Message 1 of 2
(3,012 Views)
Hi!

If you have all the data in binary form the best way to go would be to keep it like that as long as possible. The graph controls in CVI accept different data types of binary data. The only reason that I see the need to transform the data to binary is when you need to export some sort of spreadsheet file.

If you need to have the data in ASCII you can use the formatting and IO library, under data formatting there is a series of functions that can help you accomplish this. depending on the output that you require you can use "fmt()" to pass data from binary to string.

I hope this helps; let me know if you have some questions.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 2
(3,012 Views)