xPC Target | ![]() ![]() |
Add signals to a scope represented by a scope object
Syntax
addsignal(
scope_object_vector
,
signal_index_vector
)
scope_object_vector
.addsignal(
signal_index_vector
)
Arguments
Description
Method of a scope object. The signals must be specified by their indices, which can be retrieved 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.
Display a list of properties and values for the scope object sc1
with the property Signals
, as shown below.
Another way to add signals without using the method addsignal
is to use the scope object method set
.
Or to directly assign signal values to the scope object property Signals
.
See Also
The xPC Target scope object methods remsignal
and set
. The target object method addscope
and getsignalid
.
![]() | Using the Property TriggerSample to Capture Data | get | ![]() |