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

Using Digital Scan Clock Gating for a Continuous Analog Acquisition

0 ratings | 0.00 out of 5
Print

Downloads

Filename: digscanclockgating.c
Requirements: View

This example shows how to perform digital scan clock gating using NI-DAQ function calls. Digital Scan Clock Gating means that scanning analog channels only occurs while a digital signal is high. When the signal goes low, scanning pauses. Conversely, the digital gate signal pauses the acquisition while the digital signal is high and scans while the digital signal is low. In this example, the digital signal should be connected to PFI0.

Refer to the link below for more information on scan clock gating.

I/O Connections:
Connect your analog signal to analog input (AI) channel 1. The default analog input mode for the DAQ device is used.
Connect the digital gate signal to PFI0. While this pin is low, scanning pauses. To change the input PFI line for the gate signal or to change the polarity, you must modify the Select_Signal function call.

Refer to the hardware user manual for device-specific I/O connection details.

NI-DAQ Functions Used:
Timeout_Config, NIDAQErrorHandler, DAQ_Rate, DAQ_DB_Config, DAQ_Start, DAQ_DB_HalfReady, DAQ_DB_Transfer, NIDAQYield, DAQ_Clear, Select_Signal


Related Links:
Continuous Waveform Acquisition Using Scan Clock Gating

Requirements


Filename: digscanclockgating.c

Software Requirements


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

Hardware Requirements


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

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