Yes, the slow axis (galvo) follows a (smoothed) sawtooth pattern. After each frame, the slow axis flies back to the starting position.
In ScanImage 2015/2016, you can adjust the flyback time in the configuration dialog.
You can plot the output waveform of the galvo in Matlab with the following command:
In ScanImage 2015/2016, the resonant scanner is the timing master of the system. Since the frequency of the resonant scanner can change slightly over time (mostly due to temperature changes), it is hard to predict the exact timing ahead of time.
However, during an active scan, you can measure the time delay between frames by reading out the frame clock with an oscilloscope.
The frame clock is exported on PFI6 of the resonant/galvo control board.
The frame clock goes high when the first sample of the first pixel of a frame is acquired and it goes low after the last sample of the last pixel of the frame is acquired.
The low time of the frame clock is exactly the time when no data is acquired.
Useful ScanImage Links:
- Fill Fraction
- Period Trigger
- Synchronization to Laser Clock
- Acquisition Triggering
- Configuring ResScan (Resonant Scanning)
- Configuration Controls