xPC Target    
addsignal

Add signals to a scope represented by a scope object

Syntax

MATLAB command line

Target command line

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 two or more signals, enclose numbers in brackets and separate with commas.
scope_index
Single scope index.

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