07-04-2012 09:45 AM
What I'm trying to do is log the Y value of a waveform with respect to time. For my test vi, I have a function generator generating a sine wave; after doing some comparison with it, I want to log the components of the sine wave into an excel file. Let's say, every 10ms or some amount of time, I want to log the amplitude of the sine wave into excel. At the end, by using the excel file, I would be able to use the data and graph the sine wave.
What I tried doing was use the elapsed time .vi hooked up to a case structure with 10ms. Inside the case, I'm using the 'Get Waveform Components' function where I log the Y component. So now, every 10ms, the amplitude of the sine wave gets logged. The PROBLEM here is that the Y component is always the dt=0 part of the sine wave, so I'm logging the same amplitude over and over. Not really sure what to do next now...
Thank you!
07-04-2012 12:38 PM
07-04-2012 01:38 PM
In that case, how do I pull the values off of the array along with dt (time) onto a file such as excel for later use?
07-04-2012 01:57 PM
07-04-2012 02:21 PM
From my understanding, the sine wave from the FG has a dt of 1ms so if I were to write all this to a spreadsheet file, the file would be quite large. So my goal is to reduce the data in the file..
What if I only want to record the corresponding Y value of the sine wave at every dt=10ms (or any increments set by the user). Obviously by doing this, the reproduced sine wave at the end won't be as smooth but it will reduce the file size and the data.
Thank you for the help!
07-04-2012 03:05 PM