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

SCXI 1520 Continuous Acquisition Using Track and Hold

1 ratings | 5.00 out of 5
Print

Downloads

Filename: continuous_1520.zip
Requirements: View

Example program: Continuous 1520.c

Description: This example program performs a double-buffered acquisition from multiple channels of an SCXI-1520 module using the track and hold features, and internal timing (uses low-level NI-DAQ functions). The data is collected in a buffer and when the acquisition is stopped, the last buffer data from channels 0 and 1 is plotted on a graph.

Variables: Since variables are hardcoded, ths program may not work in your application. This example is simply presented as a code snippet of how you can use NI-DAQ functions to perform a task.

Function Calls:
NI-DAQ Function Calls Used:
SCXI_Reset, SCXI_Load_Config, SCXI_Track_Hold_Setup, SCXI_Set_Gain,
SCXI_Set_Excitation, SCXI_Configure_Filter,
SCXI_Configure_Connection, SCXI_SCAN_Setup, Timeout_Config,
SCXI_MuxCtr_Setup, SCAN_Op, SCAN_Demux, SCXI_Scale

NIDAQEX.C Function Calls Used:
NIDAQErrorHandler,

CONVERT.C Function Calls Used:
Strain_Buf_Convert

[NOTE: For further details on each NI-DAQ function, refer
to the Traditional NI-DAQ C Reference Help (NIDAQPC.HLP).]

Pin Connection Information: Refer to the SCXI-1520 User Manual for the appropriate wiring diagram of the bridge configuration you are using. This program is default configured for quarter bridge in the variables declaration section. Make sure you are using SCXI channels 0 through 7 for this example.

[For further I/O connection details, refer to the hardware user manual.]

Related Links:
SCXI and NI-DAQ Series: SCXI Strain - Null and Shunt Calibration
Using SCXI and NI-DAQ for Simultaneous Sampling - Single Buffered
SCXI and NI-DAQ Series: SCXI Strain - Single Buffered

Requirements


Filename: continuous_1520.zip

Software Requirements


Application Software: LabWindows/CVI Full Development System 6.0
Language(s): C

Hardware Requirements


Hardware Group: SCXI
Hardware Model: SCXI-1520
Driver: Traditional NI-DAQ (Legacy) 6.9.3

 
1 ratings | 5.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/).