add dlw module; clean up for handover
[direct-laser-writing.git] / write_path / write_path.py
index dbb1348063d8d0c3bb4bcb57d8e01d4ccbc8e59a..e8fe94219ca82acc3c26f08d6bb73f010a0cfd54 100644 (file)
@@ -194,13 +194,13 @@ def dots(task, pidevice):
     # Get two z values where the beam is in focus at two points: the left 
     # and right sides of the writing area. Put these values in focus_*,
     # and the distance between the two sample points in focus_range.
-    focus_left = 3.5
-    focus_right = 3.5
+    focus_left = 8.5
+    focus_right = 8.5
     focus_range = 10
 
     # Positioning parameters
-    start_x = 95
-    start_y = 70
+    start_x = 25
+    start_y = 0
     pitch = 5
 
     # Go to origin
@@ -208,7 +208,8 @@ def dots(task, pidevice):
     pidevice.MOV({1: start_x, 2: start_y})
 
     # Set exposure times in ms
-    times = np.array([10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000])
+    #times = np.array([10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000])
+    times = np.array([10, 20, 50, 100, 200, 500, 1000])
     for i, t in enumerate(times):
 
         # Go to dot position
@@ -257,8 +258,8 @@ if __name__ == "__main__":
     task, pidevice = setup()
     try:
         #lines(task, pidevice)
-        #dots(task, pidevice)
-        test_rec(pidevice)
+        dots(task, pidevice)
+        #test_rec(pidevice)
     finally:
         pitools.stopall(pidevice)
         task.close()
\ No newline at end of file