DAQmxCfgChangeDetectionTiming
- Updated2023-03-16
- 1 minute(s) read
int32 DAQmxCfgChangeDetectionTiming (TaskHandle taskHandle, const char risingEdgeChan[], const char fallingEdgeChan[], int32 sampleMode, uInt64 sampsPerChan);
Purpose
Configures the task to acquire samples on the rising and/or falling edges of the lines or ports you specify.
Parameters
| Input | ||||||||||||||
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| taskHandle | TaskHandle | The task used in this function. | ||||||||||||
| risingEdgeChan | const char [] | The names of the digital lines or ports on which to detect rising edges. You can specify a list or range of channels. | ||||||||||||
| fallingEdgeChan | const char [] | The names of the digital lines or ports on which to detect falling edges. You can specify a list or range of channels. | ||||||||||||
| sampleMode | int32 | Specifies whether the task acquires samples continuously or if it acquires a finite number of samples.
|
||||||||||||
| sampsPerChan | uInt64 | The number of samples to acquire from each channel 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. |