xPC Target | ![]() ![]() |
Change property values for scope objects
Syntax
set(
scope_object_vector
)
set(
scope_object_vector
,
property_name1
,
property_value1
,
property_name2
,
property_value2
, . . .)
scope_object_vector
.set('
property_name1
',
property_value1
, ..)
set(
scope_object
, '
property_name
',
property_value
, . . .)
Arguments
Description
Method for scope objects. Sets the properties of the scope object. Not all properties are user-writable
Properties must be entered in pairs, or using the alternate syntax, as one-dimensional cell arrays of the same size. This means they have to both be row vectors or both column vectors, and the corresponding values for properties in property_name_vector
are stored in property_value_vector
.
The function set typically does not return a value. However, if called with an explicit return argument, for example, a = set(target_object, property_name, property_value)
, it returns the value of the properties after the indicated settings have been made.
Examples
Get a list of writable properties for a scope object.
sc1 = getscope(tg,1) set(sc1) xPC Scope Object: Writable Properties NumSamples Decimation TriggerMode : [{FreeRun} | Software | Signal | Scope] TriggerSignal TriggerLevel TriggerSlope : [{Either} | Rising | Falling] TriggerScope Signals Mode : [Numerical | {Redraw} | Sliding | Rolling] YLimit Grid
The property value for the scope object sc1 is changed to on
:
See Also
The xPC Target scope object method get
. The target object methods set
and get
. The built-in MATLAB functions get
and set
.
![]() | remsignal | start | ![]() |