LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Peak to peak voltage.vi

I am a LabVIEW novice. I have been trying to create a VI that can display two channels of analog input signals from a CP-68LP Board and can numerically output peak-to-peak voltages and a sine-wave graph simultaneously? I'm using a 'NI 6221' Data Acquisition card with Windows XP Pro SP2. I would also like to "embed" a function(or command)that can calibrate against any drift in input signals. Could anyone could give me some tips on how to go about creating the VI or give some leads to sample codes. Thanks!
Never underestimate the power of stupid people in large groups!
0 Kudos
Message 1 of 2
(3,216 Views)
The peak to peak is easily done with the Amplitude and Levels function on the Analyze>Waveform Measurements palette. With a single waveform in, it will return a high and low level. Such sum the two together. For a waveform array in, it will return high and low level arrays - a min and max for each waveform. Index the arrays and sum. If you are getting an array of DBLs instead of a waveform data type, use the Array Max & Min function. If you only have the base version of LabVIEW, you won't have the Amplitude and level function so you can use the Get Waveform Components to extract the Y array for each signal and then use the Array Max & Min

I'm not sure exactly what you mean by "calibrate against any drift". It's certainly possible to call the DAQ board calibration routine or add an offset to the measured data. Could you provide a few more details on what you want to do?
Message 2 of 2
(3,206 Views)