User`s guide
addsignal
7-12
7addsignal
Purpose Adds signals to a scope represented by a scope object
Syntax MATLAB command line
addsignal(scope_object_vector, signal_index_vector)
scope_object_vector.addsignal(signal_index_vector)
Target command line
addsignal scope_index = signal_index, signal_index, . . .
Arguments
Description Method of a scope object. The signals must be specified by their index, which
may be retrieve using the target object method
getsignalid. If the
scope_object_vector has two or more scope objects, the same signals are
assigned to each scope.
Examples Add signals 0 and 1 from the target object tg to the scope object sc1. The signals
are added to the scope, and the scope object property Signals is updated to
include the added signals.
sc1 = getscope(tg,1)
addsignal(sc1,[0,1])
or sc1.addsignal([0,1])
Display a list of properties and values for the scope object sc1 with the property
Signals shown below.
sc1.Signals
Signals = 1 : Signal Generator
0 : Integrator1
Other ways to add signals without using the method addsignal is to use the
scope object method
set.
scope_object_vector
Name of a single scope object, or the name of a
vector of scope objects.
signal_index_vector
For one signal, use a single number. For two or
more signals, enclose numbers in brackets and
separate with commas.
scope_index
Single scope index.