Page 1 of 1

PARAMAGIC AND SIMULINK

PostPosted: Wed May 25, 2016 11:58 pm
by evidals
Hi everyone,

I´d like to know if it´s possible if we can run Simulink blocks for
Control Purposes( Transfer functions, Integrator, derivative, Step, etc) with Paramagic Tool
Pls help.

Regards,

Enrique

Re: PARAMAGIC AND SIMULINK

PostPosted: Thu Jun 02, 2016 9:13 am
by rose.yntema@intercax.com
Hi Enrique,

I'd like to understand your question better in order to help. Do you have ParaMagic installed, and have you explored section 8.3 of the user guide about the capabilities of the ParaMagic - MATLAB Connection? There is a tutorial model, HomeHeating, that comes with ParaMagic and shows how a MATLAB script that runs a Simulink model may be wrapped as a SysML constraint block for use in calculations by ParaMagic.

If you have already explored this use case and it doesn't help with your own, would you please provide some additional explanation of what you are trying to achieve? If you have built a model that you can share demonstrating what you are trying to do, that would be most helpful, but if not, at least provide some further explanation of your intentions.

Thanks!
Rose

Re: PARAMAGIC AND SIMULINK

PostPosted: Sat Jun 04, 2016 11:29 am
by evidals
Hi Rose,
now I´ve Paramagic Installed and I didn´t know that inside the Paramagic folder [<MD_Root>\samples\ParaMagic\Tutorials] is a tutorial.pdf different to the given in ParaMagic Plugin User Guide
[http://www.nomagic.com/products/magicdraw-addons/paramagic-plugin.html > Resources] in section 8.3 Paramagic-Matlab Connection. I mean different because it is further explained.

The model I´m doing is an Electromechanical actuator for an Aileron of an Airplane and I´m using Simulink in order to know some parameters as Error, Overshoot, etc as seen in the next image
MATLABMODEL.png
Also in the HomeHeating tutorial, the script calls simulink by using the next commands:

mdl='s234sldemo_househeat_SE';
open_system(mdl);

and s234sldemo_househeat_SE has the .mdl extension.
I´ll try to use this same line, and then trying some .slx instead of .mdl I think it should work.
Now I´ve finished the parametric model of the system I´m modelling, so the next step for me is creating the instance and then simulate the model.
If I find any trouble I´ll let you know

Regards from Peru,

J. Enrique Vidal

pd. for me <MD_Root>=C:\Program Files\MagicDraw

rose.yntema@intercax.com wrote:Hi Enrique,

I'd like to understand your question better in order to help. Do you have ParaMagic installed, and have you explored section 8.3 of the user guide about the capabilities of the ParaMagic - MATLAB Connection? There is a tutorial model, HomeHeating, that comes with ParaMagic and shows how a MATLAB script that runs a Simulink model may be wrapped as a SysML constraint block for use in calculations by ParaMagic.

If you have already explored this use case and it doesn't help with your own, would you please provide some additional explanation of what you are trying to achieve? If you have built a model that you can share demonstrating what you are trying to do, that would be most helpful, but if not, at least provide some further explanation of your intentions.

Thanks!
Rose