Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Hardware-Timed, Non-Buffered Analog Acquisition

0 ratings | 0.00 out of 5
Print

Downloads

Filename: cont_acq&chart__hw_timed_.zip
Requirements: View

Cont(inuous) Acq(uire) & Chart (hw timed) demonstrates the hardware timed, non-buffered technique of data acquisition. The scan clock on the board controls acquisition timing. Acquired scans are read directly from the device's FIFO using AI Single Scan.

The acquisition is configured with no buffer, and the on-board scan clock started at the selected scan rate. In the first loop iteration, the newest (most recent) scan is read from the FIFO. In each subsequent loop iteration AI Single Scan is called to read the oldest scan from the FIFO. Then if a scan is missed because the acquisition does not keep up, an error message will be displayed, and the acquisition stopped. Each scan is plotted on the chart after it is read.
A common reason to use non-buffered acquisition is that some kind of processing needs to be done for each data point. You will probably want to add more functions to the diagram to customize this VI for your application. The acquisition rate you can achieve depends on how much processing and display the VI must do. This VI calls a subVI named My Single-Scan Processing. Add whatever processing you need to this subVI, or replace it with one of your own. The data processing subVI also demonstrates how to use error clusters in your own subVIs, so they can be included in the error data flow chain.

Before running this VI, set the values of the controls on the front panel. Select Show Help Window from the Help menu to see a description of each control. If the values you select for all the controls are values you will usually use, select Make Current Values Default from the Operate menu and save the VI. Or, you may save individual control's default values by popping up on the control, selecting Data Operations, then selecting Make Current Value Default, and saving the VI.

Requirements


Filename: cont_acq&chart__hw_timed_.zip

Software Requirements


Application Software: LabVIEW Full Development System 5.0.1
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Multifunction DAQ (MIO)
Driver: Traditional NI-DAQ (Legacy)

 
0 ratings | 0.00 out of 5
Print

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/).