Is there workaround to use Dashboard block indicators in External mode (Simulink Real Time)?
13 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello, I'm able to use switches and other control-type Dashboard blocks to change parameters in a model actively running on a target computer, using External mode. I would also like to have simple visual elements in my model (as viewed from the host computer screen) for status indicators, error flags and such. I am currently using a Display block to show the output, but the change from 0 to 1 is easy to miss until too late, especially in a more crowded/complex model, and so a more visible element would be great.
Indicator-type Dashboard blocks (i.e. Lamp, Gauge, etc.) seem like exactly what I need, but the documentation says that none of these blocks are supported in External mode. Is there a workaround or alternative for this? Or, are there any plans from the developers to add External mode support in the future? This seems like essential functionality and a natural extension of switches working.
Using an Instrument Panel in Simulink Real-Time Explorer I was able to get a LED-style indicator working even in External mode. But as I want to avoid having controls/indicators divided between multiple windows (the model vs. SLRT explorer), I would need to port the rest of my control panel to this interface. However, I am hesitant to do so for a couple reasons including:
- I need to use a lot of push-button switches (which don't stay toggled) but this is not an available instrument for the panel
- The process of binding instruments is tedious compared to connecting Dashboard blocks in the model due to non-intuitive signal naming and not being able to graphically navigate the model to select signals
- Not flexible: bindings need to be re-done if I decide to move a portion of my model into a subsystem
- Parameter changes done in the panel are not reflected in the model view itself, unlike with Dashboard controls
- Means having yet another window open, and keeping track of an additional .slrtip instrument panel file instead of everything being self-contained in one .slx model file
Any suggestions would be appreciated!
2 Commenti
Sudarshan Kolar
il 8 Mag 2017
Hello EP,
I work for MathWorks and our developers are working on this enhancement request. This feature will be a part of future Matlab release.
Sudarshan
Michael Rooney
il 25 Feb 2019
Hello,
I am also trying use multiple features of the dashboard within simulink in external mode. The model runs on an arduino uno and I am trying to display sensor data on the dashboard scope. However, I cannot seem to get the scope to display any data. I have managed to get the knobs and switches working. Does anyone know if 2019a will have this feature?
Many thanks
Risposte (2)
Jon Lobo
il 28 Lug 2017
Which version of MATLAB are you using? I believe these dashboard blocks work in external mode from R2016a and later.
Jonas
il 21 Giu 2019
I would strongly recommend creating a MATLAB App with App Designer and interface with your model running in External mode with for example set_param and get_param in the function calls.
0 Commenti
Vedere anche
Categorie
Scopri di più su Control Simulations with Interactive Displays in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!