Main Content

slrealtime.ui Properties

slrealtime UI component properties for instrument panel UI

Using these properties, you can customize the appearance and operation of slrealtime.ui.control controls and slrealtime.ui.tool tools.

Target Computer Selection

expand all

When you select a target computer from the target computer selector component, the component updates its TargetName property and synchronizes the TargetSource property of all instrument panel controls to the current state of the selection. See the TargetSource property.

Example: myTarget = h.TargetName

Data Types: string

When you select a target computer from the target computer selector component, all instrument panel controls synchronize and update to the current state of the selection. All Simulink® Real-Time™ components (other than the TargetSelector component) have a TargetSource property that has one of these values:

  • empty (default)

    Empty is the default and tells the component to use the default SLRT target computer.

  • string

    String is the name of an SLRT target computer.

  • slrealtime.ui.control.TargetSelector

    slrealtime.ui.control.TargetSelector enables a component to query the currently selected target and to be notified when the selection changes.

Example: h.TargetName = 'TargetPC1'

Data Types: string | slrealtime.ui.control.TargetSelector

Position and Size

expand all

This property applies to all slrealtime.ui.control controls. For more information, see the property description in UI Figure Properties.

Example: h.Position = [0 0 200 200]

Data Types: integer array

This property applies to the slrealtime.ui.control button controls. For more information, see the property description in Button Properties.

Example: 'left'

Data Types: string

This property applies to the slrealtime.ui.control button controls. For more information, see the property description in Button Properties.

Example: 'center'

Data Types: string

This property applies to the slrealtime.ui.control button controls. For more information, see the property description in Button Properties.

Example: 'center'

Data Types: string

Component Appearance

expand all

This property applies to all slrealtime.ui.control controls. For more information, see the property description in UI Figure Properties.

Example: 'Helvetica'

Data Types: system supported font name

This property applies to all slrealtime.ui.control controls. For more information, see the property description in UI Figure Properties.

Example: 12

Data Types: positive number

This property applies to all slrealtime.ui.control controls. For more information, see the property description in UI Figure Properties.

Example: 'normal'

Data Types: string

This property applies to all slrealtime.ui.control controls. For more information, see the property description in UI Figure Properties.

Example: 'normal'

Data Types: string

This property applies to all slrealtime.ui.control controls. For more information, see the property description in UI Figure Properties.

Example: 0 0 0

Data Types: RGB triplet

This property applies to all slrealtime.ui.control controls. For more information, see the property description in UI Figure Properties.

Example: [0.96 0.96 0.96]

Data Types: RGB triplet

Connect Button Component

expand all

This property applies to the slrealtime.ui.control.ConnectButton component. The property selects the icon that is displayed on the button in the connected state.

Example: 'slrtConnectIcon.png'

Data Types: string

This property applies to the slrealtime.ui.control.ConnectButton component. The property selects the icon that is displayed on the button in the disconnected state.

Example: 'slrtDisconnectIcon.png'

Data Types: string

This property applies to the slrealtime.ui.control.ConnectButton component. The property selects the text that is displayed on the button in the connected state.

Example: 'Connected'

Data Types: string

This property applies to the slrealtime.ui.control.ConnectButton component. The property selects the text that is displayed on the button in the disconnected state.

Example: 'Disconnected'

Data Types: string

Load Button Component

expand all

This property applies to the slrealtime.ui.control.LoadButton component. The property selects whether the button displays the name of the loaded real-time application in the loaded state.

Example: true

Data Types: logical

This property applies to the slrealtime.ui.control.LoadButton component. The property selects the icon that is displayed on the button.

Example: 'slrtLoadIcon.png'

Data Types: string

This property applies to the slrealtime.ui.control.LoadButton component. The property selects the text that is displayed on the button.

Example: 'Load Application'

Data Types: string

This property applies to the slrealtime.ui.control.LoadButton component. The property selects whether the button action skips installation and just loads the real-time application.

Example: false

Data Types: logical

This property applies to the slrealtime.ui.control.LoadButton component. The property selects whether the button action that loads the real-time application is asynchronous (does not block) MATLAB operation.

Example: false

Data Types: logical

This property applies to the slrealtime.ui.control.LoadButton component. The property selects the application that loads when you click the button. If set, the button loads the specified application instead of opening a dialog box to select an application.

Example: 'myApplication'

Data Types: string

Start-Stop Button Component

expand all

This property applies to the slrealtime.ui.control.StartStopButton component. The property selects whether the button stop action reloads the real-time application.

Example: true

Data Types: logical

This property applies to the slrealtime.ui.control.StartStopButton component. The property selects the icon that is displayed on the button.

Example: 'slrtRunIcon.png'

Data Types: string

This property applies to the slrealtime.ui.control.StartStopButton component. The property selects the text that is displayed on the button.

Example: 'Start'

Data Types: string

This property applies to the slrealtime.ui.control.StartStopButton component. The property selects the icon that is displayed on the button.

Example: 'slrtStopIcon.png'

Data Types: string

This property applies to the slrealtime.ui.control.StartStopButton component. The property selects the text that is displayed on the button.

Example: 'Stop'

Data Types: string

System Log Component

expand all

This property applies to the slrealtime.ui.control.SystemLog component. The property selects whether the log entries include timestamps.

Example: false

Data Types: logical

Update Button Component

expand all

This property applies to the slrealtime.ui.control.UpdateButton component. The property selects the icon that is displayed on the button.

Example: 'slrtUpdateIcon.png'

Data Types: string

This property applies to the slrealtime.ui.control.UpdateButton component. The property selects the text that is displayed on the button.

Example: 'Update Software'

Data Types: string

Parameter Table and Signal Table Component

expand all

This property applies to the slrealtime.ui.control.ParameterTable and slrealtime.ui.control.SignalTable controls. For more information, see the RGB triplet table the property description in UI Figure Properties.

Example: [0 0 0]

Data Types: RGB triplet

This property applies to the slrealtime.ui.control.ParameterTable and slrealtime.ui.control.SignalTable controls. For more information, see the RGB triplet table in the property description in UI Figure Properties.

Example: [1 1 1]

Data Types: RGB triplet

Parameter Tuner Component

expand all

This property applies to the slrealtime.ui.tool.ParameterTuner component. The property identifies the underlying App Designer component connected to the parameter tuner.

Example: hKnob

Data Types: graphic object

This property applies to the slrealtime.ui.tool.ParameterTuner component. The property identifies a parameter that is specified by block path and parameter name.

Example: 'testmodel/Constant6'

Data Types: string

This property applies to the slrealtime.ui.tool.ParameterTuner component. The property identifies a parameter that is specified by block path and parameter name.

Example: 'Value'

Data Types: string

This property applies to the slrealtime.ui.tool.ParameterTuner component. Use this property to convert a parameter value to a value used by the component Value property. For example, you can convert a fixed-point value to a double.

Example: @app.convToDouble

Data Types: object handle

This property applies to the slrealtime.ui.tool.ParameterTuner component. Use this property to convert a component value to a value used by the real-time application on the target computer. For example, you can convert discrete knob states to integer values.

Example: @app.convertedInt

Data Types: object handle

Instrument Manager Component

expand all

This property applies to the slrealtime.ui.tool.InstrumentManager component. Use this property to add Instrument objects to the array of managed instruments. The Instrument objects are bound to one or more UI components.

Example: [hInstAxes hInstGauge]

Data Types: array of Instrument objects

Introduced in R2021b