Skip to content

Commit e541016

Browse files
author
neil.hamilton
committed
add wavetype change to example
1 parent d004e99 commit e541016

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

examples/PS6000A_ID_Signal_Generator_Example.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,18 @@
137137

138138
pause(5)
139139

140+
%% change wave type to square and stop sweeping
141+
142+
waveType = ps6000aEnumInfo.enPicoWaveType.PICO_SQUARE;
143+
144+
[status.sigGenWaveform] = invoke(ps6000aDeviceObj,'ps6000aSigGenWaveform',waveType, 0,0);
145+
146+
% apply changes
147+
sweepEnabled = 0;
148+
[status.sigGenApply] = invoke(ps6000aDeviceObj, 'ps6000aSigGenApply', sigGenEnabled, sweepEnabled, triggerEnabled, automaticClockOptimisationEnabled, overrideAutomaticClockAndPrescale, pFrequency, pStopFrequency, pFrequencyIncrement, pDwellTime);
149+
150+
pause(5)
151+
140152
%% Disconnect scope
141153

142154
disconnect(ps6000aDeviceObj);

0 commit comments

Comments
 (0)