niHSDIO_ConfigureGenerationRepeat

NI Digital Waveform Generator/Analyzer

niHSDIO_ConfigureGenerationRepeat

Specific Function

C Function Prototype

ViStatus niHSDIO_ConfigureGenerationRepeat (ViSession vi, ViInt32 repeatMode, ViInt32 repeatCount);

Purpose

Specifies the number of times to generate a waveform or whether to generate it continuously. This function is only valid when the generationMode parameter of the niHSDIO_ConfigureGenerationMode function is set to NIHSDIO_VAL_WAVEFORM.

Parameters

Name Type Description
vi ViSession This handle identifies your instrument session. vi was obtained from niHSDIO_InitGenerationSession.
repeatMode ViInt32 Specifies the repeat mode to configure.

Defined Values

NIHSDIO_VAL_FINITE (16)—Calling the niHSDIO_Initiate function generates the named waveform a finite number of times. The number of times is specified by the repeatCount parameter.

NIHSDIO_VAL_CONTINUOUS (17)—Calling the niHSDIO_Initiate function generates the named waveform continuously (until the niHSDIO_Abort function is called). repeatCount is ignored.

Default Value: NIHSDIO_VAL_FINITE
repeatCount ViInt32 Specifies the number of times to generate the waveform. This parameter is ignored if repeatMode is NIHSDIO_VAL_CONTINUOUS.

Default Value: 1

Return Value