LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

writing oscilloscope waveform data to a file using labwindows/CVI 7.0

I am trying to write waveform data (ViReal64*) from my oscilloscope to a file. I know how to use the ArrayToFile() method, but that will not work for this type of data. Any ideas?
0 Kudos
Message 1 of 3
(2,970 Views)
Is there a particular format that you would like to use to write your data to file? If so, you may have to do a little bit of type casting. I believe the data type ViReal64 is a typedef of the native data type double. I think if you treat it as a double, you can write the data to file without a problem. If this doesn't work for you, can you post an example of the data you're getting? You should be able to see what the data is by setting a breakpoint in the program and then looking at the variables.
Jeremy L.
National Instruments
0 Kudos
Message 2 of 3
(2,950 Views)
Ah... mental error, I was trying to write an array of pointers to ViReal64 objects rather than an array of just ViReal64 objects (which are in fact treated as doubles) thanks for the help.
0 Kudos
Message 3 of 3
(2,926 Views)