Search code examples
pythonmeasurementvisagpibpyvisa

pyVISA GPIB GET (group execute trigger)


I would like to trigger a few measurement devices at the same time over GPIB. There is a GPIB function "GET" which works with LabVIEW, that I would like to use with pyVISA.

Can I send this global GET command with pyVISA?


Solution

  • PyVisa class GPIBInterface has support for group_execute_trigger.

     intf.group_execute_trigger(instrument1, instrument2, ...):
    

    (Source)

    Example:

    import visa
    rm = visa.ResourceManager()
    intf = rm.open_resource('GPIB0::INTFC')
    inst1 = rm.open_resource('GPIB0::11::INSTR')
    inst2 = rm.open_resource('GPIB0::12::INSTR')
    intf.group_execute_trigger(inst1, inst2)
    

    (Source)