Acquiring Waveform Data from an NI DMM in LabVIEW SignalExpress
Overview
The NI 407x line of DMMs is capable of performing waveform voltage and current acquisitions. However, there currently is not a step available in LabVIEW SignalExpress that will allow the user to acquire waveform data from a DMM. The attached example is a LabVIEW VI that can be used as a user-defined step in LabVIEW SignalExpress to acquire DMM waveform measurements. Note: you must have LabVIEW Development System installed to use this VI as a step in your LabVIEW SignalExpress project.
Downloads
Filename: dmm_waveform_signalexpress.zip
Requirements: View
How the VI Works
The attached LabVIEW code executes the following steps to acquire waveform data from an NI 407x DMM:
-
Opens a session to the DMM.
-
Configures the Function (Waveform Voltage or Waveform Current), Range, Rate, and Total Number of Samples.
-
Initiates the DMM.
-
If the Total Number of Samples does not evenly divide into the Samples to Fetch at a Time, the example uses the niDMM Read Status VI and the value of its Backlog parameter to retrieve all samples that are available.
-
Fetches samples until all requested samples are fetched and aborts the acquisition if an error occurs.
-
Aborts the acquisition.
-
Closes the session to the DMM.
Using the VI as a User-Defined Step in LabVIEW SignalExpress
Complete the following steps to use this VI as a user-defined step in LabVIEW SignalExpress:
- Verify that you have installed LabVIEW Development System 8.5 or later and LabVIEW SignalExpress 2.5 or later.
- Extract the attached source distribution to your hard drive.
- In your LabVIEW SignalExpress project, click the Add Step button. Add the step called Run LabVIEW 8.5 VI, found under the Run LabVIEW VI category.
- The Step Setup tab for this step will open. On the Settings tab, click the file folder icon on the Select VI control. Navigate to the location where you saved the source distribution and select the Fetch & Graph Waveform VI. Click OK.
- You may add inputs by selecting the Connect Input... button. This will allow you to use the results of previous steps as inputs to configure the DMM waveform acquisition. Or, you may choose to click the Configure VI tab and configure the acquisition through the VI front panel.
- Once you have configured all of the settings, including the Device Name, Function, Range, Sample Rate, Total Number of Samples, and Samples to Fetch at a Time, your project is ready to run.
Requirements
Filename: dmm_waveform_signalexpress.zip
Software Requirements
Application Software: LabVIEW Full Development System 8.5
Language(s): LabVIEW
Hardware Requirements
Hardware Group: Digital Multimeters (DMM)
Hardware Model: PCI-4070, PXI-4072, PXI-4071, PXI-4070
Driver: NI-DMM 2.7.2
Reader Comments | Submit a comment »
Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
