Description
The Combo Box block allows you set the worthiness of a parameter to at least one of a few values. You can easily determine each value that is selectable its label through the Combo Box block parameters. Utilize the Combo Box block along with other Dashboard obstructs to create a dashboard that is interactive of and indicators for the model.
Double-clicking the Combo Box block will not start its dialog package during simulation so when the block is chosen. To modify the block’s parameters, you can make use of the house Inspector, or perhaps you can right-click the block and choose Block Parameters through the context menu.
Linking Dashboard Obstructs
Dashboard obstructs don’t use ports for connecting to produce connections. To get in touch dashboard obstructs to factors and block parameters, utilize connect mode. Connect mode facilitates the entire process of linking dashboard obstructs in your model, particularly when you need to link blocks that are multiple when. You can also use the Connection table in the block dialog box if you only want to connect a single dashboard block.
You can easily change dashboard block connections in your model during normal and accelerator mode simulations.
Dashboard obstructs cannot hook up to factors before you update the model diagram. To get in touch dashboard obstructs to factors or change values that are variable starting your model and owning a simulation, upgrade the model diagram making use of Ctrl+D.
To enter connect mode, pause for an unconnected dashboard block and then click the Connect key that seems above it.
A list of parameters and variables available for connection appears in connect mode, when you select one or more signals or blocks. Pick an adjustable or parameter through the list for connecting to your chosen dashboard block. In order to connect another dashboard block, pause on another dashboard block and then click the Connect switch above it. Then, make an array of signals and obstructs in your model and select a adjustable or parameter in order to connect.
Whenever you complete connecting the dashboard obstructs in your model, click on the Exit switch into the upper-right associated with canvas.
You are able to conceal the message shown on unconnected obstructs utilising the set_param function utilizing the ShowInitialText block parameter. The message additionally vanishes whenever the block is connected by you.
Parameter Logging
Tunable parameters linked to dashboard blocks are logged into the Simulation information Inspector, where you are able to see the parameter values along with logged sign information. You can easily access logged parameter data into the MATLAB В® workplace by exporting the parameter information through the Simulation information Inspector using the UI or the Simulink.sdi.exportRun function. To find out more about exporting information making use of the Simulation information Inspector UI, see Export Data through the Simulation Data Inspector. The parameter information is stored in a Simulink.SimulationData.Parameter item, available as a feature when you look at the exported Simulink.SimulationData.Dataset .
Limitations
Except the Dashboard Scope block together with show block, dashboard obstructs can simply connect with genuine scalar signals.
You can’t make use of the Connection dining dining table to get in touch a dashboard block up to a block that is commented away. Whenever you connect a dashboard block up to a commented block making use of connect mode, the dashboard block doesn’t show the connected value through to the you uncomment the block.
Dashboard blocks cannot connect with signals inside referenced models.
Whenever you simulate a model hierarchy, dashboard obstructs inside referenced models don’t upgrade.
Dashboard obstructs usually do not help accelerator simulation that is rapid.
Some signals aren’t available during accelerator mode simulations. The signal for logging to view these signals using a dashboard block, mark.
Once you specify a block parameter value by indexing an array that is variable the parameter will not come in the text dining table. For instance, a block parameter thought as engine(1) utilising the engine that is variable not come in the dining dining dining table.
To get into the parameter when you look at the Connection dining table, assign the indexed value up to a scalar variable, such as for instance engine_1 . Then, utilize the scalar variable to determine the block parameter.
Whenever you link a dashboard block up to a adjustable or parameter during simulation, the info for the adjustable or parameter just isn’t logged to your Simulation information Inspector. To log adjustable and parameter information to your Simulation information Inspector, connect the dashboard block into the adjustable or parameter just before simulation.
Whenever you simulate a model in outside mode because of the Default parameter behavior set to Inlined, dashboard obstructs can may actually alter parameter and values that are variable. But, the modification will not propagate towards the simulation. As an example, Gain obstructs display modifications meant to the Gain parameter utilizing the dashboard obstructs, nevertheless the Gain value utilized in the simulation will not alter.