TargetSelector
Description
creates a Speedgoat® target computer selector component for an instrument panel hTargetSelector
= slrealtime.ui.control.TargetSelector(hFigure
)uifigure
figure. Simulink®
Real-Time™ refers to target computers by mapping unique names to IP addresses. Multiple
mappings are allowed.
You can access each target computer by using its name. One mapping is the default and is used when no target computer name is supplied. The target selector component displays the list of all named target computers currently defined on the MATLAB® development computer.
The target computer selector list entry Simulink Normal Mode
is not a customer-defined target. This selection appears at the end of the list to support
Simulink normal mode simulation of a model. When you select Simulink Normal
Mode
in the target selector, the load application button changes to a load
model button. Use this button to select the model to interface with the control panel
app.
The drop-down list is editable. You can enter a valid IP address and create a temporary target computer mapping that is removed when the target computer selector component is destroyed.
It is possible to have different components in the same instrument panel synchronize
with different target computers. By selecting a target computer for a component by using the
TargetSelector
, instrument panel components with their
TargetSource
property set to the TargetSelector
synchronize and are updated to the current state of the target computer selected by the
TargetSelector
. For more information, see the
TargetSource
property description in slrealtime.ui Properties.
Tip
The TargetSelector
operates differently when used in a compiled
(standalone) instrument panel app. Instead of selecting the target computer by name from
the drop-down list, you connect to the target computer by inserting the target computer
IP address (for example, 192.168.7.5
). For standalone apps (which
operate outside of Simulink), the Simulink Normal Mode
option for
simulation is not available. For more information, see Create Standalone Instrument Panel App by Using Application Compiler.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2021bSee Also
ConnectButton
| EventManager
| ImportFileLogButton
| InstrumentManager
| LatchButton
| LoadButton
| Menu
| MomentaryButton
| ParameterSetButton
| ParameterTable
| ParameterTuner
| RebootButton
| RecordButton
| SignalTable
| SimulationTimeEditField
| StartStopButton
| StatusBar
| StopTimeEditField
| SystemLog
| TETMonitor
| UpdateButton
| slrealtime.ui Properties