I am sampling the frequency of a generator set using a 1126 module. The frequency values I am getting are approximately 60 Hz.
I am sampling at 150 samples per second and using the Index Waveform Array function to peel off the frequency waveform. Then I am running that waveform wire (brown) through a Get Waveform components function to seperate the t0, dt, and y components. I am taking the oranage wire from the Y portion to write those values to a spreadsheet file. Then I want to build an array of the frequency values and the time values and write that to file (transposing the array if need be).
I want one column to be the frequency values and the second column to be the correspond
ing time values for each of those data points. For example, starting at t=0:
Frequency (Hz) Time (s)
60.0 0
60.1 0.0066666
59.9 0.0133333
60.2 0.0200000
60.1 0.0266666
|
|
| end of first second
|
V
60.5 0.9866666
60.1 0.9933333
60.0 1.0000000
59.7 1.0066666
The time interval increments by 1/150 of a second each time a sample is taken (150 times per second).
I tried to use the Get Waveform Time Array function, but that returned a 10 digit number that did not appear to be related to the time in seconds.
Can someone please advise me on how I can get the corresponding time values in seconds for waveform data points in the situation described above? Thanks!