niHSDIO_ConfigureGenerationRepeat
- Updated2023-02-21
- 1 minute(s) read
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 valid only when the generationMode parameter of the niHSDIO_ConfigureGenerationMode function is set to NIHSDIO_VAL_WAVEFORM.
Related topics:
Parameters
| Input | ||
| Name | Type | Description |
| vi | ViSession | Identifies your instrument session. vi was obtained from the niHSDIO_InitAcquisitionSession or niHSDIO_InitGenerationSession function. |
| Repeat Mode | 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. |
| Repeat Count | ViInt32 | Specifies the number of times to generate the waveform. This parameter is ignored if repeatMode is set to NIHSDIO_VAL_CONTINUOUS. |
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:
|