AdV-DET›Phase camera (2 to be developed)
#33882
Pr scanning pattern for mirrors
We changed the generation of the scanning pattern for the (piezo controlled) mirrors from the waveform generator to the DAC using Pr.
The attached oscilloscope picture shows the scanning pattern for the two piezo inputs. Together they form an Archimedes spiral lasting for about 0.5 seconds, followed by a slow moving back (ramp down) to the centre position. The pattern repeats every second.
The oscilloscope was externally triggered by the 1 pps signal obtained from our demodulation electronics (scope trigger at 10%). We have checked that the phase between the scanning pattern and the 1 pps is fixed if an integer spiraling frequency is used (120 Hz in this case).
This is the core of the Pr script:
------------------------------
PR_CONST_CH ampl 1.0 10000 "au" 1
# nameOut - ramp ampl - ramp Freq - zero(%) - rise(%) - one(%) - fall(%) - offset - unit - sampleRate - rampTime # cste(%)
PR_RAMP_CH ramp_up 1.0 1.0 0.0 53.332 0.0 0.0 0.0000 "V" 10000 1 # 2e-05
PR_RAMP_CH ramp_down1 -0.8171 1.0 53.3332 0.0 0.1 10.0 0.0000 "V" 10000 1 # 2e-05
PR_RAMP_CH ramp_down2 0.8159 1.0 53.3332 0.0 0.1 10.0 0.0000 "V" 10000 1 # 2e-05
# nameOut - sinus ampl - sinus Freq(Hz) - phi0(rad) - offset - unit - fType - sampleRate - rampTime # sinus period(ns)
PR_SINEWAVE_CH sinus1 1.0 120 -0.95532 0 "V" "fast" 10000 1 # -111111111 ns
PR_SINEWAVE_CH sinus2 1.0 120 0.95532 0 "V" "fast" 10000 1 # -111111111 ns
PR_OP scaled_ramp ramp_up * ampl
PR_OP spiral_ch1 sinus1 * scaled_ramp
PR_OP spiral_ch2 sinus2 * scaled_ramp
PR_OP scaled_ramp_down1 ramp_down1 * ampl
PR_OP scaled_ramp_down2 ramp_down2 * ampl
# nameOut - weight, nameIn - weight, nameIn - ... # Unit - sample Freq
PR_SUM_CH DAC_act6 1.00 spiral_ch1 1.00 scaled_ramp_down1 0.00 white 0.00 lowpass # V 10000
PR_SUM_CH DAC_act7 1.00 spiral_ch2 1.00 scaled_ramp_down2 0.00 white 0.00 lowpass # V 10000
------------------------------
Thanks to Loic, Eric and Daniel for helping us with Pr.