diff --git a/src/main/java/org/micromanager/acqj/internal/Engine.java b/src/main/java/org/micromanager/acqj/internal/Engine.java index 99581eb..9627c00 100644 --- a/src/main/java/org/micromanager/acqj/internal/Engine.java +++ b/src/main/java/org/micromanager/acqj/internal/Engine.java @@ -454,6 +454,7 @@ private void acquireImages(final AcquisitionEvent event, // Loop through and collect all acquired images. There will be // (# of images in sequence) x (# of camera channels) of them boolean timeout = false; + final String axesAsJSONString = event.getAxesAsJSONString(); for (int i = 0; i < (event.getSequence() == null ? 1 : event.getSequence().size()); i++) { if (timeout) { // Cancel the rest of the sequence @@ -541,7 +542,7 @@ private void acquireImages(final AcquisitionEvent event, } event.acquisition_.postNotification( new AcqNotification(AcqNotification.Camera.class, - event.getAxesAsJSONString(), AcqNotification.Camera.POST_EXPOSURE)); + axesAsJSONString, AcqNotification.Camera.POST_EXPOSURE)); for (AcquisitionHook h : event.acquisition_.getAfterExposureHooks()) { h.run(event); }