From: Karan on 31 May 2010 14:35 Hey everyone, I have a simple simulink model and a GUI. For now, purpose of the project it to use GUI to modify simulink model parameters. In my gui I have edit text box and push button. I can change parameters in simulink model using edit text box but what I want to do is use push button to add specific value say 5 to the value of simulink model. EX: Say Frequency is 5 in simulink model, I press push button and frequency changes to 10. Is there a way of doing it?? or is it not possible to do? Thank you all ! ! :)
From: Steven Lord on 31 May 2010 23:05 "Karan " <karan7789(a)gmail.com> wrote in message news:hu0vgp$djg$1(a)fred.mathworks.com... > Hey everyone, > > I have a simple simulink model and a GUI. For now, purpose of the project > it to use GUI to modify simulink model parameters. In my gui I have edit > text box and push button. > > I can change parameters in simulink model using edit text box but what I > want to do is use push button to add specific value say 5 to the value of > simulink model. > > EX: Say Frequency is 5 in simulink model, I press push button and > frequency changes to 10. > > Is there a way of doing it?? or is it not possible to do? http://www.mathworks.com/access/helpdesk/help/techdoc/creating_guis/f6-8865.html -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
From: Karan on 4 Jun 2010 13:36 "Steven Lord" <slord(a)mathworks.com> wrote in message <hu1te7$2dp$1(a)fred.mathworks.com>... > > "Karan " <karan7789(a)gmail.com> wrote in message > news:hu0vgp$djg$1(a)fred.mathworks.com... > > Hey everyone, > > > > I have a simple simulink model and a GUI. For now, purpose of the project > > it to use GUI to modify simulink model parameters. In my gui I have edit > > text box and push button. > > > > I can change parameters in simulink model using edit text box but what I > > want to do is use push button to add specific value say 5 to the value of > > simulink model. > > > > EX: Say Frequency is 5 in simulink model, I press push button and > > frequency changes to 10. > > > > Is there a way of doing it?? or is it not possible to do? > > http://www.mathworks.com/access/helpdesk/help/techdoc/creating_guis/f6-8865.html > > -- > Steve Lord > slord(a)mathworks.com > comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ > To contact Technical Support use the Contact Us link on > http://www.mathworks.com > Hey Thank you for the reply :) Now, I am stuck on something else, I would like to get the parameters from simulink. I have a simulation of DC motor running, in simulink display block it shows Battery voltage. I would like to get that information and display it in my GUI. So, How do I get parameters from simulink?
From: Karan on 4 Jun 2010 13:45 "Karan " <karan7789(a)gmail.com> wrote in message <hubdia$avb$1(a)fred.mathworks.com>... > "Steven Lord" <slord(a)mathworks.com> wrote in message <hu1te7$2dp$1(a)fred.mathworks.com>... > > > > "Karan " <karan7789(a)gmail.com> wrote in message > > news:hu0vgp$djg$1(a)fred.mathworks.com... > > > Hey everyone, > > > > > > I have a simple simulink model and a GUI. For now, purpose of the project > > > it to use GUI to modify simulink model parameters. In my gui I have edit > > > text box and push button. > > > > > > I can change parameters in simulink model using edit text box but what I > > > want to do is use push button to add specific value say 5 to the value of > > > simulink model. > > > > > > EX: Say Frequency is 5 in simulink model, I press push button and > > > frequency changes to 10. > > > > > > Is there a way of doing it?? or is it not possible to do? > > > > http://www.mathworks.com/access/helpdesk/help/techdoc/creating_guis/f6-8865.html > > > > -- > > Steve Lord > > slord(a)mathworks.com > > comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ > > To contact Technical Support use the Contact Us link on > > http://www.mathworks.com > > > > Hey Thank you for the reply :) > > Now, I am stuck on something else, I would like to get the parameters from simulink. > > I have a simulation of DC motor running, in simulink display block it shows Battery voltage. I would like to get that information and display it in my GUI. > > So, How do I get parameters from simulink? I would like to be more clear, I know how to use get_param function, but I would like to get parameter from the Display Block ! ! ! Thank you ! :)
From: Karan on 4 Jun 2010 14:14 "Karan " <karan7789(a)gmail.com> wrote in message <hubdia$avb$1(a)fred.mathworks.com>... > "Steven Lord" <slord(a)mathworks.com> wrote in message <hu1te7$2dp$1(a)fred.mathworks.com>... > > > > "Karan " <karan7789(a)gmail.com> wrote in message > > news:hu0vgp$djg$1(a)fred.mathworks.com... > > > Hey everyone, > > > > > > I have a simple simulink model and a GUI. For now, purpose of the project > > > it to use GUI to modify simulink model parameters. In my gui I have edit > > > text box and push button. > > > > > > I can change parameters in simulink model using edit text box but what I > > > want to do is use push button to add specific value say 5 to the value of > > > simulink model. > > > > > > EX: Say Frequency is 5 in simulink model, I press push button and > > > frequency changes to 10. > > > > > > Is there a way of doing it?? or is it not possible to do? > > > > http://www.mathworks.com/access/helpdesk/help/techdoc/creating_guis/f6-8865.html > > > > -- > > Steve Lord > > slord(a)mathworks.com > > comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ > > To contact Technical Support use the Contact Us link on > > http://www.mathworks.com > > > > Hey Thank you for the reply :) > > Now, I am stuck on something else, I would like to get the parameters from simulink. > > I have a simulation of DC motor running, in simulink display block it shows Battery voltage. I would like to get that information and display it in my GUI. > > So, How do I get parameters from simulink? I would like to be more clear, I know how to use get_param function, but I would like to get parameter from the Display Block ! ! ! Thank you ! :)
|
Next
|
Last
Pages: 1 2 Prev: uicalendar - ploblem with multiple date selections Next: Symbol Line Width in Legend |