How to change parameters value on simulink model trough GUI ?

Hi, I'm Wina I'm new to matlab and now learning to built an op-amp application (inverting amplifier) using GUI matlab and simulink. But i have problems on how to connect my simulink model with the GUI..?? I have 3 blocks on the simulink that i want to edit the value trough GUI there are AC Voltage Source and two Resistors and then display the output value on the GUI. Here the attachment of the file :
Thankyou very much for your help

1 commentaire

Your .zip contains a .fig and a .mdl -- where is the inverting.m that corresponds to inverting.fig ?

Connectez-vous pour commenter.

Réponses (2)

Nn
Nn le 19 Déc 2011
I'm sorry... i forgot to insert the file... here the complete file inverting.fig, inverting.m and the model inverting1.mdl http://www.4shared.com/file/N3JY3KO-/inverting_2.html
Kaustubha Govind
Kaustubha Govind le 19 Déc 2011
You may find this documentation example useful: A GUI to Set Simulink Model Parameters

3 commentaires

Nn
Nn le 19 Déc 2011
Thankyou Kaustubha... i've read the guide, but it's difficult for me to understand... how to implement it to my simulink... i need the similar example so i can easily learn it... if you wouldn't mind please check my files...
Nn
Nn le 20 Déc 2011
should i use sim () or set_param ?
You can use set_param to set parameter values as per your GUI, and then use sim to run the simulation. Please follow the documentation and post back if you run into specific issues. It is a little unreasonable to expect forum contributors to download files, because we do this in our spare time.

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Question posée :

Nn
le 19 Déc 2011

Community Treasure Hunt

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

Start Hunting!

Translated by