niHSDIO_ConfigureScriptToGenerate

NI Digital Waveform Generator/Analyzer

niHSDIO_ConfigureScriptToGenerate

Specific Function

C Function Prototype

ViStatus niHSDIO_ConfigureScriptToGenerate (ViSession vi, ViConstString scriptName);

Purpose

Sets the script to be generated upon a call to the niHSDIO_Initiate function when in NIHSDIO_ATTR_GENERATION_MODE equals NIHSDIO_VAL_SCRIPTED. If there are multiple scripts loaded when niHSDIO_Initiate is called, then one script must be designated as the script to generate or you receive an error. This function need only be called if multiple scripts are present in onboard memory (refer to NIHSDIO_ATTR_SCRIPT_TO_GENERATE for more information).

Parameters

Name Type Description
vi ViSession This handle identifies your instrument session. vi was obtained from niHSDIO_InitGenerationSession.
scriptName ViConstString Specifies which script to generate upon calling niHSDIO_Initiate.

Return Value