LoadButton
Description
creates a Speedgoat® target computer load button for an instrument panel hLoadButton
= slrealtime.ui.control.LoadButton(hFigure
)uifigure
figure. This button loads a real-time application onto the target
computer and optionally displays the currently loaded application. You can disable this
display by using a button property. The button has properties that enable you to set a
loading option for skip install and asynchronous load.
For information about control properties, see slrealtime.ui Properties. It is important to set the TargetSource property for this control if you plan on using your app with target computers other than the default target computer.
Tip
The LoadButton
operates differently when used in a compiled
(standalone) instrument panel app. Instead of opening the load file UI, pressing the
Load button loads the MLDATX file that is selected from the
Application
property for the LoadButton
. You
include this MLDATX file in the compiled and packaged app. In the app, select the
real-time application by adding code that sets the MLDATX file name. This example code
selects the slrt_ex_osc
MLDATX file.
% Define the real-time application file to load. app.LoadButton.Application = 'slrt_ex_osc';
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
| Menu
| MomentaryButton
| ParameterSetButton
| ParameterTable
| ParameterTuner
| RebootButton
| RecordButton
| SignalTable
| SimulationTimeEditField
| StartStopButton
| StatusBar
| StopTimeEditField
| SystemLog
| TETMonitor
| TargetSelector
| UpdateButton
| slrealtime.ui Properties