Write Script
- Updated2023-02-17
- 2 minute(s) read
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

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

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

error in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Default value: No error

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.

error out
Error information.
The node produces this output according to standard error behavior.