GUI selection

Moderator: jasper

GUI selection

Postby King » 14 April 2017, 03:50

Is it possible to show the PRO/II type GUI when double left click (not right click) the matlab unit operation? Because when the module is finished, there is no need to show the matlab GUI to users.
King
 
Posts: 22
Joined: 17 February 2017, 06:22

Re: GUI selection

Postby jasper » 14 April 2017, 06:23

CAPE-OPEN defines only that there is method Edit (ICapeUtilities::Edit). What to do when it gets invoked, is up to the unit operation - typically a unit operation specific dialog is shown. When to invoke it is up to the PME, in this case I suspect you are using ProII, but other PMEs may have a different strategy for left or right clicking (or double clicking, or...).

So what you are requesting is that the Matlab unit operation allows for showing a different dialog, that is not meant to configure the unit operation in terms of ports, parameters and matlab script, but rather one that has been designed by the unit operation creator to do more specific tasks. There are two issues with that

1) the matlab unit operation would need to define a second script for what to do in case of Edit, in which case one would need to define a script that creates a dialog, and
2) there would need to be some way to return to the original dialog to reconfigure the unit's scripts, ports, parameters etc

Would such functionality be useful to you? Note that the Matlab unit operation was never meant to create re-distributable end-user unit operations, as

1) redistribution requires the end user to run Matlab
2) redistribution requires the end usre to also have the Matlab CAPE-OPEN Unit Operation installed
3) there data that defines the unit operation would have to be saved as .mum file and imported into the Matlab CAPE-OPEN Unit Operation by the end user

Instead, the Matlab CAPE-OPEN unit operation is meant to be a custom modeling tool, for research and prototyping. For redistribution of a unit operation model, it probably makes more sense to re-code the unit operation in C++ (or another language).
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain


Return to MATLAB Unit Operation (AmsterCHEM)

Who is online

Users browsing this forum: No registered users and 2 guests

cron