• General
    • Automated Measurements Overview
    • System Requirements
    • Measurement Modes and Default Settings
  • Bode Automation Interface
    • Documentation
    • Command Reference
    • Changelog
  • SCPI
    • Documentation
    • Command Reference
    • Error Handling
    • Changelog

    Show / Hide Table of Contents
    • SCPI Overview
    • Getting Connected
      • Start SCPI server
      • Setup Connection
      • Usage of NI I/O Trace to monitor the SCPI traffic
    • Command Syntax
      • Introduction to the SCPI language
      • Data Formats
      • Data Transmission Formats
      • Suffixes
    • Status & Error Handling
      • Status Register System
      • Error and Event System
      • Error Handling
    • The Trigger System & Data Sychronization
      • Trigger System
      • Select the correct trigger source for :TRIG:SING
      • Synchronization
    • Coding & Examples
      • Reading the query buffer
      • Read buffer size
      • SCPI Python examples
      • Error Handling
    • List of Abbreviations
    • SCPI Changelog

    Select the correct trigger source for :TRIG:SING

    For a general overview of the SCPI trigger system please refer to Trigger.

    In order to use the command :TRIG:SING the correct source (BUS) shall be selected.
    Using the default (Internal) source the measurement would start immediately instead of after :TRIG:SING.
    Furthermore, the *OPC command would have no effect and not all the measurement data could be available at reading time.

    Here is a short program excerpt where the mentioned commands are used in the correct way:

         visaSession.write(':TRIG:SOUR BUS\n')
         visaSession.write(':INIT\n')
         visaSession.write(':TRIG:SING\n')
         visaSession.query('*OPC?\n')
         frequencyValues = visaSession.query(':SENS:FREQ:DATA?\n')
         print("Frequency values: " + frequencyValues)
         measurementValues = visaSession.query(':CALC:DATA:SDAT?\n')
         print("Meas. values: " + measurementValues)
    

    Without the command :TRIG:SOUR BUS the *OPC is not effective and :SENS:FREQ:DATA? would retrieve just a part of the expected results. How many results it will be, is timing-dependent and not consistent.

    Back to top Generated by DocFX