12-15-2018 12:09 PM - edited 12-15-2018 12:11 PM
Hi all,
I'm pretty new to LabView programming.
I'm trying to read data from a binary file, plotting the waveform and doing some operations with this data (like averaging, std deviation ... ) and saving the results in xls/csv.
I don't have any problem with rebuilding and plotting the three waveforms from the bin file, but the results I got from std deviation & variance block is wrong. I'm matching this result with data on an Excel sheet.
The binary file is created by another VI, that's read three voltages from a DAQ and save in a bin and txt file.
More deeply, we have read for 10 seconds three voltages (the supply and the voltage applied to 2 resistors) with a NI9215 DAQ, at the rate of 1kHz and 1000 samples.
We used the data on the txt file to create the Excel sheet.
I can't find wich error I'm doing.
Many thanks to all.
12-15-2018 12:45 PM - edited 12-15-2018 12:50 PM
12-15-2018 01:41 PM
Thank you for the fast answer !
I'm applying your advice.
Perhaps I was not clear enough. My fault.
I have done an example about reading one file, but I want to read all files in a folder (I will have 30 bin files), do some operations (like averagin, std deviance, variance ecc.), and create a csv/xls sheet with all that value.
So I could skip the copy from txt to Excel, and the use of vba macros to delete useless text and blank row.
With "the mean of a waveform", I meant that's to create for each file an array with three value:
-the mean of all value of the voltages recorded from the ai0 DAQ's channel;
-the mean of all value of the second voltages recorded from the ai1 DAQ's channel;
-the mean of all value of the thirds voltages recorded from the ai2 DAQ's channel;
So I will save this 3 value in a sheet.
Thank you again for the answer.
In the provided files, there are 4 files as an example of what I save from the other VI.