How to Configure an RFSG Script Trigger in InstrumentStudio

Updated Oct 22, 2026

Environment

Hardware

  • PXI Vector Signal Transceiver
  • PXI Vector Signal Generator

Software

  • InstrumentStudio

Driver

  • NI-RFSG

This guide explains how to configure a radio frequency (RF) signal generator to wait for an external trigger and execute an NI-RFSG script once the trigger is detected. You can configure up to four script triggers entirely within the InstrumentStudio interface.

Requirements and Prerequisites

  • Software: InstrumentStudio 2026 Q2 or later
  • Driver: NI-RFSG
  • Hardware: Supported Vector Signal Transceiver (VST) or RF Signal Generator

  1. Open the RF Signal Generator panel. This is where script generation is configured.
  2. Configure the panel for script-based generation. Script Trigger is used only in Script mode.

       3. Create or load a script that contains a wait until scriptTriggerX statement. This is the line that pauses execution.
       4. Open the panel’s Trigger settings and select trigger type from the dropdown menue. This is where you map Script Trigger input. For example, Digital Edge is selected in the picture below.
       5. Assign the Script Trigger source, such as a PXI trigger line when Digital Edge or Digital Level is selected. For example, PXI_Trig0 is selected in the picture below.
       6. Run the generator. The script starts and waits at the trigger line.

Send the trigger from the selected source. Generation continues when the trigger arrives. 

 

The following example demonstrates waiting for an external digital edge on scriptTrigger0 before generating a waveform named MyWaveform:

script MyScript
    wait until scriptTrigger0
    generate MyWaveform
end script 

Next Steps

Common mistakes to avoid

  • Using a script without wait until scriptTrigger0
  • Configuring the wrong trigger source
  • Forgetting to Run/Initiate before expecting the trigger to work