Sample Timing Type

NI-DAQmx C Properties

Sample Timing Type

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 when you want to use bidirectional hardware signals to time the exchange of digital data between two devices.

Select DAQmx_Val_OnDemand when you want 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 when you perform a buffered period or frequency counter measurement or when you generate a finite pulse train.

Valid values

DAQmx_Val_SampClk 10388 Use a sample clock to determine how often to acquire or generate samples.
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.
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