Attributes, I/O Register, SIS3610

The following script shows how an input register senses the state of an output register.

#!/usr/bin/python 

from PyTango import *
import sys
import time

try :
    ireg1 = DeviceProxy( "someHost:10000/hires/exp/ireg1")
    oreg1 = DeviceProxy( "someHost:10000/hires/exp/oreg1")
    
    print( "ireg1, value ", ireg1.Value)
    oreg1.Value = 1
    print( "ireg1, value ", ireg1.Value)
    oreg1.Value = 0
    
except :
    print( "Failed with exception !")
    print( sys.exc_info()[0])