File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -241,9 +241,13 @@ function generateScanWaveform(obj)
241
241
switch obj .waveformType
242
242
243
243
case ' sawtooth'
244
- % The X waveform goes from +galvoAmp to -galvoAmp over the course of one line.
244
+ % The X waveform goes from +galvoAmp to -galvoAmp over the course of one line:
245
245
xWaveform = linspace(-obj .galvoAmp , obj .galvoAmp , obj .pixelsPerLine );
246
- obj.waveform = repmat(xWaveform , 1 , obj .numReps )' ; % Repeat the X waveform a few times to ease visualisation on-screen
246
+
247
+ % Repeat the X waveform a few times to ease visualisation on-screen
248
+ xWaveform = repmat(xWaveform , 1 , obj .numReps )' ; % NOTE! It's a column vector
249
+
250
+ obj.waveform = xWaveform ; % Assign to the waveform property which gets written to the DAQ
247
251
248
252
case ' sine'
249
253
% sine wave
You can’t perform that action at this time.
0 commit comments