Quick-Control Oscilloscope Functions
The oscilloscope
function can use the following special functions, in
addition to standard functions such as connect
and
disconnect
.
Function | Description |
---|---|
autoSetup | Automatically configures the instrument based on the input
signal.autoSetup(myScope); |
disableChannel | Disables the oscilloscope's
channel(s).disableChannel(myScope, 'Channel1'); disableChannel(myScope, {'Channel1', 'Channel2'}); |
enableChannel | Enables the oscilloscope's channel(s) from which waveform(s) will be
retrieved.enableChannel(myScope, 'Channel1'); enableChannel(myScope, {'Channel1', 'Channel2'}); |
drivers | Returns a list of available drivers with their supported instrument
models.driverlist = drivers(myScope); |
resources | Retrieves a list of available resources of instruments. It returns a list of
available VISA resource strings when using an IVI-C scope. It returns the interface
resource information when using a Tektronix® scope.res = resources(myScope); |
configureChannel | Returns or sets specified oscilloscope control on selected channel. Possible controls are:
value = configureChannel(myScope,'Channel1','VerticalOffset'); configureChannel(myScope,'Channel1','VerticalCoupling','AC'); |
getVerticalCoupling | Returns the value of how the oscilloscope couples the input signal for the
selected channel name as a MATLAB character vector. Possible values returned are
'AC' , 'DC' , and
'GND' .VC = getVerticalCoupling (myScope, 'Channel1'); |
getVerticalOffset | Returns the location of the center of the range for the selected channel name as
a MATLAB character vector. The units are
volts.VO = getVerticalOffset (myScope, 'Channel1'); |
getVerticalRange | Returns the absolute value of the input range the oscilloscope can acquire for
selected channel name as a MATLAB character vector. The units are
volts.VR = getVerticalRange (myScope, 'Channel1'); |
readWaveform | Returns the waveform(s) displayed on the scope screen. Retrieves the waveform(s)
from enabled
channel(s).w = readWaveform(myScope); |
reset | Resets the device to factory default
state.reset(myScope); |
setVerticalCoupling | Specifies how the oscilloscope couples the input signal for the selected channel
name as a MATLAB character vector. Values are 'AC' ,
'DC' , and
'GND' .setVerticalCoupling (myScope, 'Channel1', 'AC'); |
setVerticalOffset | Specifies the location of the center of the range for the selected channel name
as a MATLAB character vector. For example, to acquire a sine wave that spans from 0.0
to 10.0 volts, set this attribute to 5.0
volts.setVerticalOffset (myScope, 'Channel1', 5); |
setVerticalRange | Specifies the absolute value of the input range the oscilloscope can acquire for
the selected channel name as a MATLAB character vector. The units are
volts.setVerticalRange (myScope, 'Channel1', 10); |