Commit 389f94af authored by prjemian's avatar prjemian
Browse files

make it easier to change the IOC prefix

parent c51ec6cd
......@@ -10,10 +10,10 @@ then execute these lines from the terminal
import epics
epics.caput('prj:userCalc1.CALC', 'rndm')
epics.caput('prj:userCalc1.SCAN', '.2 second')
epics.caput('prj:EnableUserCalcs', 1)
IOC = 'prj:'
epics.caput(IOC+'userCalc1.CALC', 'rndm')
epics.caput(IOC+'userCalc1.SCAN', '.2 second')
epics.caput(IOC+'EnableUserCalcs', 1)
wh_pos()
......@@ -29,15 +29,15 @@ history
# setup "our detector" that is configured in ophyd as "noisy"
epics.caput('prj:userCalc1.INAN', 'prj:m1.RBV')
epics.caput('prj:userCalc1.INBN', 'prj:m2.RBV')
epics.caput('prj:userCalc1.C', '0.05')
epics.caput('prj:userCalc1.D', '10')
epics.caput(IOC+'userCalc1.INAN', IOC+'m1.RBV')
epics.caput(IOC+'userCalc1.INBN', IOC+'m2.RBV')
epics.caput(IOC+'userCalc1.C', '0.05')
epics.caput(IOC+'userCalc1.D', '10')
# simple noisy signal, proportional to motor m1
epics.caput('prj:userCalc1.CALC', 'A+C*(rndm-0.5)')
epics.caput('prj:userCalc1.SCAN', '.2 second')
epics.caput('prj:EnableUserCalcs', '1')
epics.caput('prj:userCalc1.CALC', 'D*cos(A+B+C*rndm)^2')
epics.caput(IOC+'userCalc1.CALC', 'A+C*(rndm-0.5)')
epics.caput(IOC+'userCalc1.SCAN', '.2 second')
epics.caput(IOC+'EnableUserCalcs', '1')
epics.caput(IOC+'userCalc1.CALC', 'D*cos(A+B+C*rndm)^2')
RE(
outer_product_scan([noisy], m1, -.5, .5, 10, m2, -.7, .7, 10, True),
LiveMesh('m1', 'm2', 'noisy', xlim=(-.5,.5), ylim=(-.7,.7), clim=(0, 10)),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment