DAQmxCfgPipelinedSampClkTiming
int32 DAQmxCfgPipelinedSampClkTiming (TaskHandle taskHandle, const char source[], float64 rate, int32 activeEdge, int32 sampleMode, uInt64 samplesPerChannel);
Purpose
Sets the source of the Sample Clock, the rate of the Sample Clock, and the number of samples to acquire or generate. The 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 using the Pause trigger, the Ready for Transfer event, or the Data Active event. Refer to the device documentation for more information.
This timing type is supported only by the NI 6536 and NI 6537.
Parameters
Input | ||||||||||||||
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
taskHandle | TaskHandle | The task used in this function. | ||||||||||||
source |
|
The source terminal of the Sample Clock. To use the internal clock of the device, use NULL or use OnboardClock. | ||||||||||||
rate | float64 | The sampling rate in samples per second per channel. If you use an external source for the Sample Clock, set this value to the maximum expected rate of that clock. | ||||||||||||
activeEdge | int32 | Specifies on which edge of the clock to acquire or generate samples.
|
||||||||||||
sampleMode | int32 | Specifies whether the task acquires or generates samples continuously or if it acquires or generates a finite number of samples.
|
||||||||||||
sampsPerChanToAcquire | uInt64 | The number of samples to acquire or generate for each channel in the task if sampleMode is DAQmx_Val_FiniteSamps. If sampleMode is DAQmx_Val_ContSamps, NI-DAQmx uses this value to determine the buffer size. |
Return Value
Name | Type | Description |
---|---|---|
status | int32 | The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error. |