Help Icon
Search Results for

    Show / Hide Table of Contents

    *TRG

    Description

    Generates a trigger over the Bus. The trigger is only accepted, if the trigger source is set to BUS. Otherwise, the command is ignored. The command is finished before the measurement is completed and can NOT be awaited with an OPC command.

    If the trigger is NOT in the Waiting for Trigger state, the command has no effect and a Trigger Ignored error (nr. -211) is generated.

    For more information about the trigger system, please refer to Trigger System.

    • Command
    Syntax Parameter
    *TRG none
    Parameters accepted format allowed suffixes possible Errors description
    none none none Trigger Ignored - -211 none

    Sample usage

    Start a single trigger cycle.

    • C#
    var visaSession = new TcpipSocket(VISA_RESOURCENAME);
    visaSession.RawIO.Write(":TRIG:SOUR BUS\n");
    visaSession.RawIO.Write(":INIT\n");
    visaSession.RawIO.Write("*TRG\n");
    
    • Python
    visaSession.write(':TRIG:SOUR BUS\n')
    visaSession.write(':INIT\n')
    visaSession.write('*TRG\n')
    

    Related commands

    :INITiate:CONTinuous

    :INITiate[:IMMediate]

    :TRIGger[:SEQuence][:IMMediate]

    References

    Trigger System

    In this article
    Back to top Generated by DocFX