User`s guide

addsignal
Purpose Add signals to scope represented by scope o bject
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
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
twoormoresignals,enclosenumbersin
brackets and separate with commas.
scope_index
Single scope index.
Description addsignal adds signals to a scope object. The signals must be specifie d
by their indices, w hich you can retrieve using the target object method
getsignalid.Ifthescope_o bject_vector has two or more scope
objects, the same signals are assigned to each scope.
Note Yo u must stop the scope before y ou can add a signal to it.
Examples Add signals 0 and 1 from the target object tg to the scope object sc1.
Thesignalsareaddedtothescope,andthescopeobjectproperty
Signals is updated to include the added signals.
sc1 = getscope(tg,1)
addsignal(sc1,[0,1]) or sc1.addsignal([0,1])
18-6