Skip to content
Snippets Groups Projects
Commit 2605d22e authored by rodolakis's avatar rodolakis
Browse files

fixed scan clearing, scanXAS still doesn't move ID

parent c96827dd
No related branches found
No related tags found
No related merge requests found
......@@ -411,7 +411,7 @@ class ScanRecord:
kwargs.setdefault('scan_dim',1)
scan_pv = self.ioc+"scan"+str(kwargs['scan_dim'])
caput(scan_pv+".CMND",3) # Clear all Positionners
caput(scan_pv+".CMND",4) # Clear all Positioners,etc
if verbose:
print("\nAll extra positionners cleared")
......@@ -479,9 +479,6 @@ class ScanRecord:
kwargs.setdefault('positioner_settling_time',default_positioner_settling_time)
kwargs.setdefault('debug',False)
if 'trigger_dictionary' in kwargs:
self.trigger_dictionary = kwargs['trigger_dictionary']
self.progress(kwargs['scan_dim'])
scan_pv = self.ioc+"scan"+str(kwargs['scan_dim'])
......@@ -505,6 +502,8 @@ class ScanRecord:
self.detector_settling_time(**kwargs)
self.positioner_settling_time(**kwargs)
if 'trigger_dictionary' in kwargs:
self.trigger_dictionary = kwargs['trigger_dictionary']
self.triggers_set(kwargs['scan_dim'],self.trigger_dictionary)
#checking that PVs and positioner limits are good
......
......@@ -411,7 +411,7 @@ class ScanRecord:
kwargs.setdefault('scan_dim',1)
scan_pv = self.ioc+"scan"+str(kwargs['scan_dim'])
#caput(scan_pv+".CMND",3) # Clear all Positionners
caput(scan_pv+".CMND",4) # Clear all Positioners,etc
if verbose:
print("\nAll extra positionners cleared")
......@@ -479,9 +479,6 @@ class ScanRecord:
kwargs.setdefault('positioner_settling_time',default_positioner_settling_time)
kwargs.setdefault('debug',False)
if 'trigger_dictionary' in kwargs:
self.trigger_dictionary = kwargs['trigger_dictionary']
self.progress(kwargs['scan_dim'])
scan_pv = self.ioc+"scan"+str(kwargs['scan_dim'])
......@@ -505,6 +502,8 @@ class ScanRecord:
self.detector_settling_time(**kwargs)
self.positioner_settling_time(**kwargs)
if 'trigger_dictionary' in kwargs:
self.trigger_dictionary = kwargs['trigger_dictionary']
self.triggers_set(kwargs['scan_dim'],self.trigger_dictionary)
#checking that PVs and positioner limits are good
......
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