WriteScript(string)
- Updated2025-10-14
- 1 minute(s) read
Writes a script to the device to control waveform generation in script mode.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIRfsg
public void WriteScript(string script)
Remarks
Use the GenerationMode property to specify script mode before you call this method.
The NI-RFSG device must be in the Configuration state before you call this method.
Parameters
| Name | Type | Description |
|---|---|---|
| script | string | Specifies a string containing a syntactically correct script. NI-RFSG supports multiple scripts that may be selected by name with the SelectedScriptName property. Refer to Scripting Instructions for more information about using scripts. |
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The WriteScript method was accessed after the associated NIRfsg object was disposed. |