NI-HSDIO LabVIEW VIs

niHSDIO Write Script VI

  • Updated2023-02-21
  • 3 minute(s) read
Installed With: NI-HSDIO

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

If this VI 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 niHSDIO Initiate VI 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 VI returns an error if the script uses incorrect syntax. This VI calls the Dynamic instance of the niHSDIO Commit VI. All pending attributes are committed to hardware.

Related Topics

niHSDIO Write Script

civrn.gif

instrument handle identifies your instrument session. instrument handle is obtained from the niHSDIO Init Acquisition Session VI, the niHSDIO Init Generation Session VI, or the niHSDIO Init Ext Cal VI.

cstr.gif

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

For more information about scripting syntax, refer to Scripting Instructions in the Script Editor Help.

cerrcodeclst.gif

error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.

cbool.gif

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.

ci32.gif

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.

cstr.gif

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.

iivrn.gif

instrument handle out passes a reference to your instrument session to the next VI. instrument handle is obtained from the niHSDIO Init Acquisition Session VI or the niHSDIO Init Generation Session VI.

ierrcodeclst.gif

error out contains error information. This output provides standard error out functionality.

ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

ii32.gif

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.

istr.gif

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.