niHSDIO_ConfigureDataPosition
- Updated2023-02-21
- 2 minute(s) read
ViStatus = niHSDIO_ConfigureDataPosition ( ViSession vi, ViConstString channelList, ViInt32 position);
Purpose
Sets up channels to be clocked in various ways by the Sample clock edges. You have three options for data position: rising edge, falling edge, or delayed.
Related topics:
Parameters
| Input | ||||||||||
| Name | Type | Description | ||||||||
| vi | ViSession | Identifies your instrument session. vi was obtained from the niHSDIO_InitAcquisitionSession or niHSDIO_InitGenerationSession function. | ||||||||
| Channel List | ViConstString | Identifies channels to apply settings. Use "" or VI_NULL to specify all channels. | ||||||||
| Position | ViInt32 | Specifies which edge of the Sample clock signal times the operation. You can also configure the device to generate data at a configurable delay past each rising edge of the Sample clock.
This attribute is valid only when the position parameter of this function is set to NIHSDIO_VAL_DELAY_FROM_SAMPLE_CLOCK_RISING_EDGE for these channels.
Defined Values NIHSDIO_VAL_SAMPLE_CLOCK_RISING_EDGE (18)—The device samples or generates data on the rising edge of the Sample clock. NIHSDIO_VAL_SAMPLE_CLOCK_FALLING_EDGE (19)—The device samples or generates data on the falling edge of the Sample clock. NIHSDIO_VAL_DELAY_FROM_SAMPLE_CLOCK_RISING_EDGE (20)—The device samples or generates data with a delay from the rising edge of the Sample clock. Specify the delay using the NIHSDIO_ATTR_DATA_POSITION_DELAY attribute or the niHSDIO_ConfigureDataPositionDelay function.
|
||||||||
Return Value
| Name | Type | Description | ||||||||
| Status | ViStatus | Reports the status of this operation. To obtain a text description of the status code, call the niHSDIO_error_message function. To obtain additional information concerning the error condition, use the niHSDIO_GetError and niHSDIO_ClearError functions. The general meaning of the status code is as follows:
|
