Sample Timing Type

NI-DAQmx C Reference Help

Edition Date: January 2019

Part Number: 370471AM-01

»View Product Info
Download Help (Windows Only)
Data Type: int32
Description: Specifies the type of sample timing to use for the task.

Select DAQmx_Val_SampClk when a hardware signal (usually a clock) must acquire or produce samples. To perform buffered edge counting, for example, select DAQmx_Val_SampClk and use Source to specify the source of the Sample clock.

Select DAQmx_Val_Handshake to use bidirectional hardware signals to time the exchange of digital data between two devices.

Select DAQmx_Val_BurstHandshake to run at a slower rate but with the capability for per sample evaluation of triggers and events to pause the operation.

Select DAQmx_Val_PipelinedSampClk on supported devices to run at the maximum sample rate with a few Sample clock cycles delay before the device can respond to triggers and events.

Select DAQmx_Val_OnDemand to acquire data only when an NI-DAQmx Read function executes or to generate data only when an NI-DAQmx Write function executes.

Select DAQmx_Val_Implicit to perform a buffered period or frequency counter measurement or to generate a finite pulse train.

Select DAQmx_Val_ChangeDetection to capture data only when certain digital lines change states and without continuously transferring unnecessary data during periods of inactivity.



Valid values

DAQmx_Val_SampClk 10388 Acquire or generate samples on the specified edge of the sample clock.
DAQmx_Val_BurstHandshake 12548 Determine sample timing using burst handshaking between the device and a peripheral device.
DAQmx_Val_Handshake 10389 Determine sample timing by using digital handshaking between the device and a peripheral device.
DAQmx_Val_Implicit 10451 Configure only the duration of the task.
DAQmx_Val_OnDemand 10390 Acquire or generate a sample on each read or write operation. This timing type is also referred to as static or software-timed.
DAQmx_Val_ChangeDetection 12504 Acquire samples when a change occurs in the state of one or more digital input lines. The lines must be contained within a digital input channel.
DAQmx_Val_PipelinedSampClk 14668 Device acquires or generates samples on each sample clock edge, but does not respond to certain triggers until a few sample clock edges later. Pipelining allows higher data transfer rates at the cost of increased trigger response latency. Refer to the device documentation for information about which triggers pipelining affects. This timing type allows handshaking with some devices using the Pause trigger, the Ready for Transfer event, or the Data Active event. Refer to the device documentation for more information.



You can get/set/reset this property using:

  DAQmxGetSampTimingType

  DAQmxSetSampTimingType

  DAQmxResetSampTimingType

WAS THIS ARTICLE HELPFUL?

Not Helpful