High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

Perform measurements on saved waveforms

I am using a PCI-5122 to capture waveforms, then I am saving them to file using the "Write Waveforms to File" VI.  I want to now read those waveforms from the file and perform various measurements on them, particularly the same measurements that are available using the "niScope Fetch Measurement" VI.  The standard waveform processing VIs are limited in the measurements.  Can I perform the same measurements on a stored waveform as on a "real" waveform fetched from the digitizer?
0 Kudos
Message 1 of 13
(7,762 Views)
What version of LabVIEW are you using?  The base version does not have all the analysis VIs.  Anything above base should have all the functionality of the fetch measurement VI, although the naming conventions can be a bit confusing.  What did you want to do?
0 Kudos
Message 2 of 13
(7,751 Views)
I have the Professional Development System for Labview 8.5.  The Fetch Measurement VI has a long list of measurements that I can chose from.  I want to get those same measurements from the waveforms that I have stored to a file.
0 Kudos
Message 3 of 13
(7,749 Views)

hi Brian,

You can do post processing on the stored waveform after you have accquired but you would require to write your own code inorder to do the same.

 

-lab

 

0 Kudos
Message 4 of 13
(7,728 Views)
What do you mean by write my own code?  At what level?  Element by element?
0 Kudos
Message 5 of 13
(7,724 Views)

You can find VIs to do these functions in the Signal Processing palette.  Most are in the Waveform Measurements subpalette of Signal Processing.  I have attached a VI which uses one of these to measure the high and low levels and the amplitude of a signal.  It assumes an LVM formatted file containing a single waveform.

 

ScopeMeasurementFromFile.png

Message 6 of 13
(7,715 Views)
I have no problem using the available waveform measurement functions on my saved waveforms.  I want to be able to use the same measurements that are available from the NiScope FetchMeasurement VI.
0 Kudos
Message 7 of 13
(7,711 Views)
Looking at the NI-Scope function reference, it seems that all of the measurement functions are designed to first capture a waveform and none allow you to input external data.
0 Kudos
Message 8 of 13
(7,707 Views)

Dennis-

 

That is correct.  I don't want to use the Fetch Measurement VI for my analysis of stored waveforms, but I want to be able to perform the same measurements that are available in that VI.  I can only find some of them in the Waveform library.

 

Brian

0 Kudos
Message 9 of 13
(7,701 Views)

Brian,

 

I understand what you want to do but I just don't think you can use the NI-Scope driver to do perform any measurements on the data from a file.

 

Since I suspect that NI uses a common code base for all of their analysis/measurement functions (in drivers such as NI-Scope and programming languages such as LabVIEW or CVI), you can probably reproduce all of the scope measurement with a bit of code. Are there any in particular that you need?

0 Kudos
Message 10 of 13
(7,692 Views)