Skip to content

Commit

Permalink
Merge pull request #30 from JunAishima/speed-collections-sb-201
Browse files Browse the repository at this point in the history
reduce sleeps during zebra reset
  • Loading branch information
JunAishima authored Apr 17, 2023
2 parents c3d9f5b + 90e7755 commit 06d72ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mxtools/flyer.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def configure_zebra(self, *args, **kwargs):
imgWidth = kwargs["img_width"]
numImages = kwargs["num_images"]
self.zebra_daq_prep()
ttime.sleep(1.0)
ttime.sleep(0.5)

PW = (exposurePeriodPerImage - detector_dead_time) * 1000
PS = (exposurePeriodPerImage) * 1000
Expand Down Expand Up @@ -313,7 +313,7 @@ def setup_vector_program(

def zebra_daq_prep(self):
self.zebra.reset.put(1)
ttime.sleep(2.0) # not known why this sleep is so long (done since LSDC 1)
ttime.sleep(0.5) # not known why this sleep is so long (done since LSDC 1)
self.zebra.out1.put(31)
self.zebra.m1_set_pos.put(1)
self.zebra.m2_set_pos.put(1)
Expand Down
2 changes: 1 addition & 1 deletion mxtools/raster_flyer.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def configure_zebra(self, **kwargs):
numImages = kwargs["num_images"]
self.zebra_daq_prep()
self.zebra.pc.encoder.put(3) # encoder 0=x, 1=y,2=z,3=omega
ttime.sleep(1.0) # used since LSDC 1 - reason unknown
ttime.sleep(0.5) # used since LSDC 1 - reason unknown
self.zebra.pc.direction.put(0) # direction 0 = positive
self.zebra.pc.gate.sel.put(0)
self.zebra.pc.pulse.sel.put(1)
Expand Down

0 comments on commit 06d72ad

Please sign in to comment.