Skip to content
Snippets Groups Projects
Commit 889fc896 authored by rodolakis's avatar rodolakis
Browse files

debugging slits

parent 745640f3
No related branches found
No related tags found
No related merge requests found
...@@ -21,14 +21,14 @@ def _slits_dictionary(): ...@@ -21,14 +21,14 @@ def _slits_dictionary():
d = { d = {
'slit1A' : ('Slit1H','Slit1V'), 'slit1A' : ('Slit1H','Slit1V'),
'slit2B' : ('Slit2H','Slit2V'), 'slit2B' : ('Slit2H','Slit2V'),
'slit3C' : None, 'slit3C' : ('Slit3C')
'slit3D' : ('Slit4V') 'slit3D' : ('Slit4V')
} }
return d return d
def slit_name_list(): def slit_name_list():
d=_slits_dictionary() d=_slits_dictionary
for key in d.keys(): for key in d.keys():
print(key) print(key)
...@@ -46,20 +46,20 @@ def _slits_wide_open_dictionary(): ...@@ -46,20 +46,20 @@ def _slits_wide_open_dictionary():
} }
return d return d
def slits_pvs(slit_name): def slits_pvs(slit_name_HV):
""" """
returns the rbv and drive for the size,center returns the rbv and drive for the size,center
(rbv_size,val_size),(rvb_center,val_center) (rbv_size,val_size),(rvb_center,val_center)
""" """
d = _slits_dictionary() d = _slits_dictionary()
if slit_name in d.keys(): if slit_name in d.keys():
if slit_name == 'slit3C': if slit_name == 'Slit3C':
size_rbv = '29idb:Slit3CRBV' size_rbv = '29idb:Slit3CRBV'
size_val = '29idb:Slit3CFit.A' size_val = '29idb:Slit3CFit.A'
center_rbv = None center_rbv = None
center_val = None center_val = None
else: else:
slit_pv = slit_ioc + slit_name slit_pv = slit_ioc + slit_name_HV
size_rbv = slit_pv +'t2.D' size_rbv = slit_pv +'t2.D'
size_val = slit_pv +'center.VAL' size_val = slit_pv +'center.VAL'
center_rbv = slit_pv +'t2.C' center_rbv = slit_pv +'t2.C'
......
...@@ -21,7 +21,7 @@ def _slits_dictionary(): ...@@ -21,7 +21,7 @@ def _slits_dictionary():
d = { d = {
'slit1A' : ('Slit1H','Slit1V'), 'slit1A' : ('Slit1H','Slit1V'),
'slit2B' : ('Slit2H','Slit2V'), 'slit2B' : ('Slit2H','Slit2V'),
'slit3C' : None, 'slit3C' : ('Slit3C')
'slit3D' : ('Slit4V') 'slit3D' : ('Slit4V')
} }
...@@ -46,20 +46,20 @@ def _slits_wide_open_dictionary(): ...@@ -46,20 +46,20 @@ def _slits_wide_open_dictionary():
} }
return d return d
def slits_pvs(slit_name): def slits_pvs(slit_name_HV):
""" """
returns the rbv and drive for the size,center returns the rbv and drive for the size,center
(rbv_size,val_size),(rvb_center,val_center) (rbv_size,val_size),(rvb_center,val_center)
""" """
d = _slits_dictionary() d = _slits_dictionary()
if slit_name in d.keys(): if slit_name in d.keys():
if slit_name == 'slit3C': if slit_name == 'Slit3C':
size_rbv = '29idb:Slit3CRBV' size_rbv = '29idb:Slit3CRBV'
size_val = '29idb:Slit3CFit.A' size_val = '29idb:Slit3CFit.A'
center_rbv = None center_rbv = None
center_val = None center_val = None
else: else:
slit_pv = slit_ioc + slit_name slit_pv = slit_ioc + slit_name_HV
size_rbv = slit_pv +'t2.D' size_rbv = slit_pv +'t2.D'
size_val = slit_pv +'center.VAL' size_val = slit_pv +'center.VAL'
center_rbv = slit_pv +'t2.C' center_rbv = slit_pv +'t2.C'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment