xPC Target    
set

Change property values for target objects

Syntax

MATLAB command line

Target PC command line - Commands are limited to the target object properties: stoptime, sampletime, and parameters.

Arguments

target_object

Name of a target object.

'property_name'

Name of a scope object property. Always use quotation marks.

property_value
Value for a scope object property. Always use quotation marks for character strings; quotation marks are optional for numbers.
parameter_name
The letter p followed by the parameter index. For example, p0, p1, p2.

Description

Method of a target object. Sets the properties of the target 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.

Change the property showsignals to on.

As an alternative to the method set, use the target object property showsignals. In the MATLAB window, type

See Also

The xPC Target target object method get. The scope object methods get and set. The built in MATLAB functions get and set. The xPC target M-file demo scripts listed in xPC Target Demos.


  remscope start