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

NameTypeDescription
scriptstring

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

TypeDescription
System.ObjectDisposedException

The WriteScript method was accessed after the associated NIRfsg object was disposed.