NI-DAQmx: Continuous Acquisition With a Digital Start Trigger
This example demonstrates how to continuously acquire data (Waveform) using the DAQ device's internal clock and a digital start trigger.
II. Instructions for Running:
1. Select the physical channel to correspond to where your signal is input on the DAQ device.
2. Enter the minimum and maximum voltage ranges.
Note: For better accuracy try to match the Input Ranges to the expected voltage level of the measured signal.
3. Set the rate of the acquisition. Also set the Samples to Read control. This will determine how many samples are read each time the while loop iterates. This also determines how many points are plotted on the graph each iteration.
Note: The rate should be at least twice as fast as the maximum frequency component of the signal being acquired.
4. Set the source of the Digital Start Trigger. By default this is PFI0.
5. Set the slope and level of desired analog edge condition.
III. Block Diagram Steps:
1. Create an analog input voltage channel.
2. Set the rate for the sample clock. Additionally, define the sample mode to be continuous.
3. Define the parameters for a Digital Start Trigger.
4. Call the Start VI to start the acquisition.
5. Read the waveform data in a loop until the user hits the stop button or an error occurs.
6. Call the Clear Task VI to clear the Task.
7. Use the popup dialog box to display an error if any.
IV. I/O Connections Overview:
Make sure your signal input terminal matches the Physical Channel I/O control. Also, make sure your digital trigger terminal matches the Trigger Source Control. For further connection information, refer to your hardware reference manual.
Requirements
Filename: 200013.vi
Software Requirements
Application Software: LabVIEW Base Development System 7.0
Language(s): LabVIEW
Hardware Requirements
Hardware Group: Multifunction DAQ (MIO)
Hardware Model: PCI-7040/6040E, PCI-6031E, PCI-7041/6040E, PCI-6070E, PCI-6032E, PCI-6033E, PCI-6034E, PCI-6030E, PCI-6011E, PCI-6035E, PCI-6036E, NI PCIe-6251, PCI-6040E (PCI-MIO-16E-4), PCI-6052E, PCI-6071E, PCI-6110, PCI-6111, PCI-6115, PCI-6120, PCI-6122, PCI-6123, PCI-6132, PCI-6133, PCI-6220, PCI-6221, PCI-6221 (37-Pin), PCI-6224, PCI-6225, PCI-6229, PCI-6250, PCI-6251, PCI-6254, PCI-6259, PCI-6280, PCI-6281, PCI-6284, PCI-6289, PCI-7030/6030E, PCI-7030/6040E, PCI-7040/6030E, PCI-6025E, PXI-4225, PXI-6025E, PXI-6030E, PXI-6031E, PXI-6040E, PXI-6052E, PXI-6070E, PXI-6071E, PXI-6115, PXI-6120, PXI-6122, PXI-6123, PXI-6132, PXI-6133, PXI-6220, PXI-6221, PXI-6224, PXI-6225, PXI-6229, PXI-6250, PXI-6251, PXI-6254, PXI-6259, PXI-6280, PXI-6281, PXI-6284, PXI-6289, PXI-7030/6030E, PXI-7030/6040E, PXI-7040/6030E, NI PCIe-6259, PXI-4204, PXI-4220, PXI-4224, PXI-7040/6040E, PXI-7041/6040E, DAQCard-6024E, DAQCard-6036E, DAQCard-6062E, DAQPad-6015 for USB, DAQPad-6015 for USB w/BNC Term, DAQPad-6015 for USB w/Mass Term, DAQPad-6015 for USB w/Screw Term, DAQPad-6016 for USB w/Screw Term, PCI-6023E, PCI-6024E
Driver: NI-DAQmx 8.0
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/).
