import os
import sys
import time
import epics

# EPICS environment configuration
os.environ['EPICS_CA_ADDR_LIST']='10.41.70.1'

# use input 0 on front panel as trigger source10.41.70.1
inputSelPV = epics.PV("APTM1-EVR1:In0-Trig:Ext-Sel")
inputCodePV = epics.PV("APTM1-EVR1:In0-In0-Code:Ext-SP")

# delaygen PVs
dlygenEventPV = epics.PV("APTM1-EVR1:DlyGen0-Evt-Trig0-SP")
dlygenWidthPV = epics.PV("APTM1-EVR1:DlyGen0-Width-SP")
dlygenDelayPV =epics.PV("APTM1-EVR1:DlyGen0-Delay-SP")

#backplane PV
backplanePV = epics.PV("APTM1-EVR1:OutBack0-Src-SP")

# Configure INPUT 0 to generate event 10
inputSelPV.put("Edge")
inputCodePV.put(10)

# Configure delay generator 0 to trigger from event 10
dlygenEventPV.put(10) 

# Configure backplane to trigger from deley generator 0
backplanePV.put(0)



b5504630dee652b123c7882e3b18dfc1fe2babe9
<mask token>

<mask token>
inputSelPV.put('Edge')
inputCodePV.put(10)
dlygenEventPV.put(10)
backplanePV.put(0)

<mask token>
os.environ['EPICS_CA_ADDR_LIST'] = '10.41.70.1'
inputSelPV = epics.PV('APTM1-EVR1:In0-Trig:Ext-Sel')
inputCodePV = epics.PV('APTM1-EVR1:In0-In0-Code:Ext-SP')
dlygenEventPV = epics.PV('APTM1-EVR1:DlyGen0-Evt-Trig0-SP')
dlygenWidthPV = epics.PV('APTM1-EVR1:DlyGen0-Width-SP')
dlygenDelayPV = epics.PV('APTM1-EVR1:DlyGen0-Delay-SP')
backplanePV = epics.PV('APTM1-EVR1:OutBack0-Src-SP')
inputSelPV.put('Edge')
inputCodePV.put(10)
dlygenEventPV.put(10)
backplanePV.put(0)

import os
import sys
import time
import epics
os.environ['EPICS_CA_ADDR_LIST'] = '10.41.70.1'
inputSelPV = epics.PV('APTM1-EVR1:In0-Trig:Ext-Sel')
inputCodePV = epics.PV('APTM1-EVR1:In0-In0-Code:Ext-SP')
dlygenEventPV = epics.PV('APTM1-EVR1:DlyGen0-Evt-Trig0-SP')
dlygenWidthPV = epics.PV('APTM1-EVR1:DlyGen0-Width-SP')
dlygenDelayPV = epics.PV('APTM1-EVR1:DlyGen0-Delay-SP')
backplanePV = epics.PV('APTM1-EVR1:OutBack0-Src-SP')
inputSelPV.put('Edge')
inputCodePV.put(10)
dlygenEventPV.put(10)
backplanePV.put(0)

import os
import sys
import time
import epics

# EPICS environment configuration
os.environ['EPICS_CA_ADDR_LIST']='10.41.70.1'

# use input 0 on front panel as trigger source10.41.70.1
inputSelPV = epics.PV("APTM1-EVR1:In0-Trig:Ext-Sel")
inputCodePV = epics.PV("APTM1-EVR1:In0-In0-Code:Ext-SP")

# delaygen PVs
dlygenEventPV = epics.PV("APTM1-EVR1:DlyGen0-Evt-Trig0-SP")
dlygenWidthPV = epics.PV("APTM1-EVR1:DlyGen0-Width-SP")
dlygenDelayPV =epics.PV("APTM1-EVR1:DlyGen0-Delay-SP")

#backplane PV
backplanePV = epics.PV("APTM1-EVR1:OutBack0-Src-SP")

# Configure INPUT 0 to generate event 10
inputSelPV.put("Edge")
inputCodePV.put(10)

# Configure delay generator 0 to trigger from event 10
dlygenEventPV.put(10) 

# Configure backplane to trigger from deley generator 0
backplanePV.put(0)


