%% Set Vertical Range Control of Oscilloscope
% Change the vertical range control on an oscilloscope using the Quick-Control Oscilloscope in Instrument Control Toolbox.
% Create a connection to the oscilloscope.

myScope = oscilloscope("ASRL1::INSTR")

% Get the current vertical range value for 'CH1'.

offset = configureChannel(myScope,'CH1','VerticalRange')

% Set the vertical range value to 2.00 V.

configureChannel(myScope,'CH1','VerticalRange',2)

% You can look at the display on the oscilloscope and verify that the vertical offset value has changed to 2.00 V. Get the new vertical range value by reading the value again.

offset = configureChannel(myScope,'CH1','VerticalRange')

% Copyright 2019 The MathWorks, Inc.