- Create a custom library that is composed of only the blocks you want to allow.
- Add this new library to the library browser.
- Disable and hide other block libraries from the library browser.
- Create a Model Advisor script that checks a model and gives warnings/errors if prohibited blocks are used. This requires Simulink Check. If you don't have a license for Simulink Check, you can write a MATLAB script and have this script placed in one of the Model Callbacks so that the script runs when the user closes the model. Either way, the script would use the find_system() command to get a list of all blocks in the model and then compare that list against the list of allowed blocks.
Allow user to create/modify block diagram
2 views (last 30 days)
Show older comments
Jacopo Remondina
on 11 Jan 2019
Commented: Jacopo Remondina
on 15 Jan 2019
Hi!
This may sounds quite strange, but I want to allowed the final user of my MATLAB application to be able to create, save and modify some block diagrams with a small set (about 10) of available blocks and some connection between them. Is it possible? How?
Thanks,
Jacopo
Details:
The application I have in mind is for impedance spectroscopy, and in this field, the modelling of proper electrical circuits is very important, so the user will have to place some simple blocks (i.e. resistors, capacitors, inductors, etc.) and connect them with a proper network.
The final application will have to be available as a stand-alone executable, so I don't know if the matlab runtime engine can support simulink (never used)
0 Comments
Accepted Answer
Mark McBroom
on 12 Jan 2019
There is a multistep approach that most people take when trying to do this. It will not prohibit people from using other blocks.
More Answers (0)
See Also
Categories
Find more on Subsystems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!