User`s guide
addsignal
14-12
14addsignal
Purpose Add 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 addsignal adds signals to a scope object. The signals must be specified by their
indices, which you can 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.
Note You must stop the scope before you can add a signal to it.
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, as shown below.
sc1.Signals
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.