Add Customized Elements in Component Library in Matlab App Designer

조회 수: 11 (최근 30일)
Is it possible to add customized symbols in the Component Library of Matlab App Designer.
I need to design an application that describes a manufacturing process. For this application I need to add user defined symbols as listed below to the Comonent Library
  1. Products (inputs/outputs) --> Spherical Shape
  2. Process operators --> Rectangular Shape
  3. Resources --> Rectangle Shape with Soft Edges
  4. Energies --> Hexagon Shape
  5. Information --> Diamond Shape
  6. Connector --> Arrow Shape
These symbols i.e. products (inputs/outputs), process operators, resources, eneriges and information have different shapes as described above. The symbols have to be r defined once with attributes and then can be combined via drag and drop from Component Library to display the manufacturing process. There are rules on how to connect the symbols to eachother. These rules define how the Symbols can be connected to each other and I guess thes rules have to described in the code.
So my question is can I use Matlab App Designer for this Application ? Is it the right tool for me to start off with to design this Application that depicts a manufacturing process.
I highly appreciate your time and your co-operation.
Thanks and Best Regards.

채택된 답변

Divya Yerraguntla
Divya Yerraguntla 2019년 8월 6일
Hi,
This can be done by creating a custom ActiveX control, or by downloading and using an existing one. You can insert an ActiveX control through the GUIDE interface (left pane, button at the bottom right), or by using the 'actxcontrol' command:
https://www.mathworks.com/help/matlab/ref/actxcontrol.html. Each of these controls will have their own custom properties and events.
You could also try using Simulink to create customized blocks. Have a look at this link:
  댓글 수: 1
Aman Ullah Khan
Aman Ullah Khan 2019년 8월 8일
Hi,
highly appreciate your time and response.
Thank you for the valuable suggestion as I am currently struggling to get a hands on start with this project using Matlab. Definitely I will check on both of these suggested solutions. And if I have questions i ll post here.
Thanks for your time and Feedback.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Sean de Wolski
Sean de Wolski 2019년 8월 8일
You should strongly consider using SimEvents for this.
  댓글 수: 2
Aman Ullah Khan
Aman Ullah Khan 2019년 8월 8일
편집: Aman Ullah Khan 2019년 8월 8일
Thanks Sean for the suggestion, highly appreciate your time. This was helpful.
I was reading about SimEvents and in SimEvents Blocks and Design Patterns, it says
"You can also build your own domain-specific blocks by using a Stateflow Discrete-Event Chart or MATLAB Discrete-Event System block. Further, you can use Simulink capabilities, such as masking subsystems and creating libraries, to build up SimEvents subsystems into component blocks that can be shared and reused by others."
This sounds something that might help me as I have to create libraries that contain blocks that create discrete manufacturing processes where a manufacturing process can contain sub manufacturing processes like a subsystem within the existing system. I have to figure out if it will possible to add attributes (with values) to built domain-specific blocks that will be used from the library per drag and drop option.
Another aspect that I am working is to implement .XML import. To figure out if there is a possibility to import these discrete manufacturing processes in .XML format with their attributes.
These links relating to SimEvents are very good examples to start off as hands on in the beginning and give an idea as to how the model can be designed.
Currently I am going through all possible means to model this project and it has been extremely helpful as I can slowly see the right tools to design this project.
Thanks Sean for your cooperation, much appreciated.
Sean de Wolski
Sean de Wolski 2019년 8월 13일
You're welcome!
Also, feel free to reach out to your MathWorks contact if you'd like to WebEx with someone regarding your specific challenge (i.e. getting XML->SimEvents)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by