Applying Different Gains - Continuous Acquisition
This example demonstrates how to acquire a continuous amount of data (Waveform) by applying a different gain on each channel.
II. Instructions for Running:
1a. Create an analog input voltage channel.
1b. Create a cluster and place two arrays inside it. Set the different input ranges for each channel that you are reading.
1c. A different range (max and min value) will be associated with each channel, therefore each channel will have a different gain.
2. Set the rate for the sample clock. Additionally, define the sample mode to be continuous.
3. Call the Start VI to start the acquisition.
4. Read the waveform data in a loop until the user hits the stop button or an error occurs.
Note: This example reads data from one or more channels and returns an array of data. Use the Index Array function to access an individual channel of data.
5. Call the Clear Task VI to clear the Task.
6. 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. For further connection information, refer to your hardware reference manual.
Requirements
Filename: 1403.vi
Software Requirements
Application Software: LabVIEW Base Development System 7.1
Language(s): LabVIEW
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/).
