niHSDIO_ConfigureGenerationMode

NI Digital Waveform Generator/Analyzer

niHSDIO_ConfigureGenerationMode

Specific Function

C Function Prototype

ViStatus niHSDIO_ConfigureGenerationMode (ViSession vi, ViInt32 generationMode);

Purpose

Configures whether to generate the waveform specified in NIHSDIO_ATTR_WAVEFORM_TO_GENERATE or the script specified in NIHSDIO_ATTR_SCRIPT_TO_GENERATE upon calling the niHSDIO_Initiate function.

Parameters

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

Defined Values

NIHSDIO_VAL_WAVEFORM (14)—Calling niHSDIO_Initiate generates the named waveform represented by NIHSDIO_ATTR_WAVEFORM_TO_GENERATE.
NIHSDIO_VAL_SCRIPTED (15)—Calling niHSDIO_Initiate generates the script represented by NIHSDIO_ATTR_SCRIPT_TO_GENERATE.

Default Value: NIHSDIO_VAL_WAVEFORM

Return Value