Skip to content

Commit

Permalink
Small epics example
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed May 13, 2024
1 parent b62c0ad commit a8630d1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions miniDAS/test_io.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import os
import epics
from epics import PV


# Set the EPICS_CA_ADDR_LIST environment variable
os.environ['EPICS_CA_ADDR_LIST'] = 'bl4b-dassrv1:5066'

name='S1'
X=PV('BL4B:Mot:s1:X:Gap.RBV')
Xcen=PV('BL4B:Mot:s1:X:Center.RBV')
Y=PV('BL4B:Mot:s1:Y:Gap.RBV')
Ycen=PV('BL4B:Mot:s1:Y:Center.RBV')


print(X.get())

0 comments on commit a8630d1

Please sign in to comment.