niRFSG_WriteScript
C Function Prototype
ViStatus niRFSG_WriteScript (ViSession vi, ViConstString script);
Purpose
Identifies a string containing a script that controls waveform generation in Script mode. Use the niRFSG_ConfigureGenerationMode function to specify Script mode before calling niRFSG_WriteScript. Refer to Scripting Instructions for information about using scripts.
The NI-RFSG device must be in the Configuration state before calling this function.
Supported Devices: NI 5670/5671/5672
Parameters
Input | ||
Name | Type | Description |
vi | ViSession | Identifies your instrument session. The ViSession handle is obtained from the niRFSG_init function or the niRFSG_InitWithOptions function and identifies a particular instrument session. Default Value: None |
script | ViConstString | Specifies a string containing a syntactically correct script. NI-RFSG supports multiple scripts that may be selected by name with the NIRFSG_ATTR_SELECTED_SCRIPT attribute. Refer to Scripting Instructions for more information about using scripts. |
Return Value
Name | Type | Description | ||||||||
status | ViStatus | Returns the status code of this operation. The status code either indicates success or describes an error or warning condition. Examine the status code from each call to an instrument driver function to determine if an error occurred.
To obtain a text description of the status code, call the niRFSG_error_message function. To obtain additional information about the error condition, call the niRFSG_GetError function. To clear the error information from the driver, call the niRFSG_ClearError function. The general meaning of the status code is as follows:
|