Write Script

Writes a string to the onboard memory containing scripts that govern the waveform generation.

If this node is called repeatedly, previously written scripts with unique names remain loaded. Previously written scripts with identical names to those being written are replaced. If multiple scripts load when the Initiatenode is called, one script must be designated as the script to generate. If only one script exists in memory, you do not need to designate the script to generate.

This node returns an error if the script uses incorrect syntax. This node calls the Dynamic instance of the Commitnode. All pending attributes are committed to hardware.

Inputs/Outputs

datatype_icon

session in

Instrument session obtained from the Initialize Acquisition Sessionnode, the Initialize Generation Sessionnode, or the Initialize External Calibrationnode.

datatype_icon

script

The specified text of the script you want to use for your generation operation.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Default value: No error

datatype_icon

session out

Handle that identifies the session in all subsequent node calls.

The session out parameter is obtained from the Initialize Acquisition Sessionnode or the Initialize Generation Sessionnode.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior