DAQmxCfgHandshakingTiming
From NI-DAQmx C Functions
DAQmxCfgHandshakingTiming
int32 DAQmxCfgHandshakingTiming (TaskHandle taskHandle, int32 sampleMode, uInt64 sampsPerChanToAcquire);
Purpose
Determines the number of digital samples to acquire or generate using digital handshaking between the device and a peripheral device.
Parameters
| Input | ||||||||||||||
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| taskHandle | TaskHandle | The task used in this function. | ||||||||||||
| 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. |