ParameterTuner
Create parameter tuner component for App Designer component in instrument panel UI
Since R2021b
Description
creates a parameter tuner component for an App Designer component on an instrument panel
hPTuner
= slrealtime.ui.tool.ParameterTuner(hFigure
)uifigure
figure. After connecting the
parameter tuner to an App Designer component (such as a knob), the App Designer component
gets or sets data in the real-time application in the same manner as Simulink Real-Time
components available in the App Designer. The parameter tuner component pulls the current
parameter value from the Speedgoat® target computer when:
The instrument panel first starts and an application is loaded on the selected target computer.
The target selected by the instrument panel changes and an application is loaded on the selected target computer.
An application is loaded on the selected target computer.
The parameter is changed from an external source, such as the command line, Explorer, other instrument panels on the selected target computer.
If the current value of the parameter is changed from an external source and is invalid for the Parameter Tuning component (for example, it is out of range of the knob), the Parameter Tuning component displays a warning icon covering the component. Changing the parameter from an external source to some valid value for the component removes the warning icon.
When the ECU page and XCP page selections do not match, the mismatch disables the App
Designer ParameterTable
component and ParameterTuner
component. You can enable operation of these components by
coordinating ECU page and XCP page selection in the real-time application. Use the getECUPage
,
setECUPage
,
getXCPPage
,
and setXCPPage
functions. Or, use the explorer Enable Parameter Table button. This
button is context sensitive and appears when explorer detects a page selection
mismatch.
For information about parameter tuner properties, see slrealtime.ui Properties.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2021b
See Also
ConnectButton
| ImportFileLogButton
| LoadButton
| EventManager
| InstrumentManager
| LatchButton
| Menu
| MomentaryButton
| ParameterSetButton
| ParameterTable
| RebootButton
| RecordButton
| SignalTable
| SimulationTimeEditField
| StartStopButton
| StatusBar
| StopTimeEditField
| SystemLog
| TETMonitor
| TargetSelector
| UpdateButton
| slrealtime.ui Properties