LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Two Wave Forms to Scaled Data to Spreadsheet

I followed and example from ftp://ftp.ni.com/contrib/epd/B45EACE3DC0456A4E034080020E74861/Hysteresis_Characteristics_of_Magnetic_Circuits.zip that includes an image of example code that I can not get to work. My code, which I included, is supposed to scan two channels, acquire the waveforms as scaled data, and write the time and waveform plot points in three columns. I get the "y" plots ok, but the time column is full of zeros.
I'm using Labview 6i. Any help getting the correct time stamps would be appreciated.
0 Kudos
Message 1 of 3
(2,740 Views)
Hello.
The output of the AI Wave VI you are using is NOT an array, but a single number, so when you form an array out of it and a 0, you get an array with 2 elements, a 0 and your sample period, and the rest of the array is completed with zeroes. I am attaching an image of a way to achieve what I understand is what you are trying to do. I use a for loop and the sample period output of the AI Wave VI to create a "time" array with elements corresponding to the time at which each sample was taken. I hope it works for you. (I am attaching an image because I cannot save the VI in version 6i).
0 Kudos
Message 2 of 3
(2,740 Views)
Thank you for your help. I was following an example that was included in the download that is linked to in my original post. It had me pulling my hair out.
0 Kudos
Message 3 of 3
(2,740 Views)