niHSDIO Write Script

NI Digital Waveform Generator/Analyzer

niHSDIO Write Script

Writes a string containing scripts that govern the generation of waveforms.

If this function is called repeatedly, previously written scripts with unique names remain loaded. Previously written scripts with identical names to those being written are replaced. If there are multiple scripts loaded when the niHSDIO Initiate VI is called, then one of the scripts must be designated as the script to generate. If there is only one script in memory, you do not need to designate the script to generate.

An error is returned if the script uses incorrect syntax. This VI calls the Dynamic instance of the niHSDIO Commit VI. All pending attributes are committed to hardware.

instrument handle identifies your instrument session. instrument handle was obtained from the niHSDIO Init Acquisition Session VI or the niHSDIO Init Generation Session VI.
script contains the text of the script you want to use for your generation operation.

For more information on scripting syntax, select Programming»Reference»Scripting Instructions from the table of contents in this help file.

error in describes error conditions that occur before this VI or function runs.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.
source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.
instrument handle out passes a reference to your instrument session to the next VI. instrument handle was obtained from the niHSDIO Init Acquisition Session VI or the niHSDIO Init Generation Session VI.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.