From 5f20fca2d2fa903c61497450ddf195f78e8ac26a Mon Sep 17 00:00:00 2001
From: Jessica McChesney <jmcchesn@anl.gov>
Date: Fri, 19 Aug 2022 10:24:50 -0500
Subject: [PATCH] debugging scanRecord

---
 build/lib/iexcode/instruments/scanRecord.py | 9 +++++++--
 iexcode/instruments/scanRecord.py           | 8 ++++++--
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/build/lib/iexcode/instruments/scanRecord.py b/build/lib/iexcode/instruments/scanRecord.py
index 32fc1cd..5fd1840 100644
--- a/build/lib/iexcode/instruments/scanRecord.py
+++ b/build/lib/iexcode/instruments/scanRecord.py
@@ -709,7 +709,8 @@ class ScanRecord:
         kwargs.setdefault('execute',True)
         kwargs.setdefault('num_points',True)
         self.fillin("","",0,npts,1,**kwargs)   
-        
+        sleep(.1)
+
         if kwargs['execute']:
             self.go(**kwargs)
  
@@ -718,10 +719,14 @@ class ScanRecord:
         starts a scan with the readback as time in seconds
 
         **kwargs
-            trigger_dictionary = {1:'29idb:ca5:read'} (default)
+            execute True/False (default = True)
+
+            trigger_dictionary = {1:'29idb:ca5:read'}
+            
         
         Previously: Scan_Time_Go
         """
+        kwargs.setdefault('execute',True)
 
         stop=duration_min*60.0/step_sec
         self.fillin("","time",1,stop,1,**kwargs)
diff --git a/iexcode/instruments/scanRecord.py b/iexcode/instruments/scanRecord.py
index ce9ae01..5fd1840 100644
--- a/iexcode/instruments/scanRecord.py
+++ b/iexcode/instruments/scanRecord.py
@@ -710,7 +710,7 @@ class ScanRecord:
         kwargs.setdefault('num_points',True)
         self.fillin("","",0,npts,1,**kwargs)   
         sleep(.1)
-        
+
         if kwargs['execute']:
             self.go(**kwargs)
  
@@ -719,10 +719,14 @@ class ScanRecord:
         starts a scan with the readback as time in seconds
 
         **kwargs
-            trigger_dictionary = {1:'29idb:ca5:read'} (default)
+            execute True/False (default = True)
+
+            trigger_dictionary = {1:'29idb:ca5:read'}
+            
         
         Previously: Scan_Time_Go
         """
+        kwargs.setdefault('execute',True)
 
         stop=duration_min*60.0/step_sec
         self.fillin("","time",1,stop,1,**kwargs)
-- 
GitLab