niHSDIO_ConfigureDataPositionDelay

NI Digital Waveform Generator/Analyzer

niHSDIO_ConfigureDataPositionDelay

Specific Function

C Function Prototype

ViStatus niHSDIO_ConfigureDataPositionDelay (ViSession vi, ViConstString channelList, ViReal64 delay);

Purpose

Sets up the data delay with respect to the Sample clock. To configure the data delay, select NIHSDIO_VAL_DELAY_FROM_SAMPLE_CLOCK_RISING_EDGE as the value for the position parameter of the niHSDIO_ConfigureDataPosition function.

Note  To configure a delay on NI 656x devices, you must delay all channels on the device. NI-HSDIO returns an error if you apply a delay to only a partial channel list.

Parameters

Name Type Description
vi ViSession This handle identifies your instrument session. vi was obtained from the niHSDIO_InitAcquisitionSession or niHSDIO_InitGenerationSession function.
channelList ViConstString Identifies channels to apply settings. Use "" or VI_NULL to specify all channels.

Default Value: ""
delay ViReal64 Specifies the delay after the Sample clock rising edge when the device generates or acquires a new data sample. Data delay is expressed as a fraction of the clock period, that is, a fraction of 1/NIHSDIO_ATTR_SAMPLE_CLOCK_RATE. All the channels in the session that use delayed Sample clock to position data must have the same delay value.

Default Value: 0.00

Return Value