#!/usr/bin/env python import epics import time # config modPV = epics.PV('SIN-TIMAST-TMA:Evt-23-Off-SP') while True: time.sleep(5) modPV.put(0) time.sleep(5) modPV.put(1)