ni-rfsg-lv-api-ref-doc

Table of Contents

niRFSG Write Script VI

  • Updated2024-05-08
  • 2 minute(s) read

niRFSG Write Script VI

Writes a script to the device to control waveform generation in Script mode. First, configure your device for Script mode by calling the niRFSG Configure Generation Mode VI. The NI-RFSG device must be in the Configuration state before calling the niRFSG Write Script VI.

Note  If you are using an RF vector signal transceiver (VST) device, some script instructions may not be supported.

Supported Devices: PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842

Related Topics

Scripting Instructions—Refer to this topic for information about VST restrictions on scripts.

Common Scripting Use Cases

Examples

niRFSG Write Script

cio.gif

instrument handle identifies your instrument session. instrument handle is obtained from either the niRFSG Initialize VI or the niRFSG Initialize With Options VI.

cstr.gif

script specifies the script that controls waveform generation. NI-RFSG supports multiple scripts that are selected with the Selected Script property. Refer to Scripting Instructions for more information about using scripts.

cerrcodeclst.gif

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

iio.gif

instrument handle out passes a reference to your instrument session to the next VI. instrument handle out is obtained from the niRFSG Initialize VI or the niRFSG Initialize With Options VI.

ierrcodeclst.gif

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

Examples

Refer to the RFSG Getting Started Script VI in the labview\examples\instr\niRFSG directory for an example of using the niRFSG Write Script VI.

    Log in to get a better experience