diff --git a/src/TrackStimController.java b/src/TrackStimController.java index ad445ce..1c970d9 100644 --- a/src/TrackStimController.java +++ b/src/TrackStimController.java @@ -128,6 +128,7 @@ public void startImageAcquisition( } imager.scheduleImagingTasks(numFrames, framesPerSecond, imageSaveDirectory); + saveImagingJobArgs(imageSaveDirectory, numFrames, framesPerSecond, enableStimulator, preStim, stimStrength, stimDuration, stimCycleDuration, numStimCycles, enableRamp, rampBase, rampStart, rampEnd, enableTracking); } public void stopImageAcquisition(){ @@ -292,9 +293,12 @@ private void saveImagingJobArgs( p.println("stimulation cycle duration (ms): " + String.valueOf(stimCycleDur)); p.println("number of cycles: " + String.valueOf(numCycle)); p.println("ramp enabled: " + String.valueOf(useRamp)); - p.println("ramp base: " + String.valueOf(rampBase)); - p.println("ramp start: " + String.valueOf(rampStart)); - p.println("ramp end: " + String.valueOf(rampEnd)); + + if(useRamp){ + p.println("ramp base: " + String.valueOf(rampBase)); + p.println("ramp start: " + String.valueOf(rampStart)); + p.println("ramp end: " + String.valueOf(rampEnd)); + } } p.println("auto-tracking enabled: " + String.valueOf(useTracking));