Rank: 294 based on 209 downloads (last 30 days) and 7 files submitted
photo

Phil Goddard

E-mail
Company/University
Goddard Consulting

Personal Profile:

See www.goddardconsulting.ca/about.html

Professional Interests:

 

Watch this Author's files

 

Files Posted by Phil View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
10 Nov 2011 Screenshot GARCH Tool User Interface for fitting and evaluating a generic GARCH model using the Econometrics Toolbox. Author: Phil Goddard garch, ar, ma, arma, econometrics, model fitting 28 0
07 Jun 2011 Screenshot Zero Order Hold with variable time step Level-2 M-file S-function that acts as a ZOH sampler with sample times specified as a block input. Author: Phil Goddard simulink, sfunction 17 0
10 Apr 2011 Screenshot Technical Analysis Tool GUI for viewing various simple technical analysis indicators of a time series Author: Phil Goddard analysis, finance, modeling, technical analysis ch... 55 3
  • 4.25
4.2 | 4 ratings
02 Nov 2009 Screenshot Simulink Signal Viewing using Event Listeners and a MATLAB UI. This demo shows how to use block listeners to view model signals in a MATLAB user interface. Author: Phil Goddard add_exec_event_listen..., event listeners, ui, user interface, rtw, grt 76 17
  • 4.875
4.9 | 8 ratings
12 Jan 2009 Screenshot Pulse with jitter Level-2 m-code S-Function that acts as a pulse generator with jitter around a nominal period. Author: Phil Goddard simulink, pulse, sfunction, generator, jitter 7 0
Comments and Ratings by Phil View all
Updated File Comments Rating
20 Feb 2011 Simulink Signal Viewing using Event Listeners and a MATLAB UI. This demo shows how to use block listeners to view model signals in a MATLAB user interface. Author: Phil Goddard

A couple of comments ask about using the "old method" of an s-function instead of an event listener.
I often use the S-function approach, and to some extent prefer that way.
However it means that the model itself must be modified -- by the addition of the s-function block.

Sometimes, for whatever reason, you don't want to add that additional block.
Rather you want the UI to attach itself to an existing model, do its stuff, then unattach itself at the end.
That is what the event_listener approach allows.
e.g. you want to write a UI that allows the user to select one of many different models to run and upload data from.

08 Nov 2009 Simulink Signal Viewing using Event Listeners and a MATLAB UI. This demo shows how to use block listeners to view model signals in a MATLAB user interface. Author: Phil Goddard

I've updated the example to show how to add listeners to multiple blocks.

29 May 2009 Simulink Signal Viewing using Event Listeners and a MATLAB UI. This demo shows how to use block listeners to view model signals in a MATLAB user interface. Author: Phil Goddard

The reported bug about not being able to have the model open _before_ opening the UI has been fixed.

Note however that there are many model-UI interactions that the demo does not handle. For instance if the simulation is started from the UI, but is stopped by pressing the stop button on the model, then UI stop/start buttons are not updated. There are many such interactions that would need to be handled in a production version of this app, but are not handled here since they are not core functionality for the topic at hand.

Comments and Ratings on Phil's Files View all
Updated File Comment by Comments Rating
13 Jan 2012 Simulink Signal Viewing using Event Listeners and a MATLAB UI. This demo shows how to use block listeners to view model signals in a MATLAB user interface. Author: Phil Goddard Christophe

It works perfectly but I have a question.
In the Simulink model, I have a block including slash '/' (m/s), I want to obtain the signal from this block but when I write :
ad.viewing(1).blockName = sprintf('%s/m/s',ad.modelName);

The error is caused by the name, Matlab takes it like a subsystem because of the slash, is there a way to avoid this error ?

16 Aug 2011 Simulink Signal Viewing using Event Listeners and a MATLAB UI. This demo shows how to use block listeners to view model signals in a MATLAB user interface. Author: Phil Goddard trega, trega

Thank you for this example, it works very nice.
I would like to access both signals in XPGraph. To do that I changed

sTime = block.CurrentTime;
into:
sTime=block.InputPort(2).Data;

In localEventListener function.
However, now both variables: sTime and data have the same values. Could you tell me what am I doing wrong?

29 Jul 2011 Simulink Signal Viewing using Event Listeners and a MATLAB UI. This demo shows how to use block listeners to view model signals in a MATLAB user interface. Author: Phil Goddard D'souza, Vinol Joy

No problem....I self discovered the answers to both my questions

29 Jul 2011 Simulink Signal Viewing using Event Listeners and a MATLAB UI. This demo shows how to use block listeners to view model signals in a MATLAB user interface. Author: Phil Goddard D'souza, Vinol Joy

hi Phil and others,

I have a very silly problem.You have 2 graphs on your figure in the GUI.How can we add legend to this to identify the graphs.I will be very thankful if you help me in this regard.

20 Jul 2011 Simulink Signal Viewing using Event Listeners and a MATLAB UI. This demo shows how to use block listeners to view model signals in a MATLAB user interface. Author: Phil Goddard D'souza, Vinol Joy

You have changed the gain of the sine wave in this program...If i want to change the frequency on the GUI..What changes should i do???..

I would be grateful if you guide me through this...

Top Tags Applied by Phil
simulink, sfunction, add_exec_event_listener, analysis, annotation
Files Tagged by Phil View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
10 Nov 2011 Screenshot GARCH Tool User Interface for fitting and evaluating a generic GARCH model using the Econometrics Toolbox. Author: Phil Goddard garch, ar, ma, arma, econometrics, model fitting 28 0
07 Jun 2011 Screenshot Zero Order Hold with variable time step Level-2 M-file S-function that acts as a ZOH sampler with sample times specified as a block input. Author: Phil Goddard simulink, sfunction 17 0
10 Apr 2011 Screenshot Technical Analysis Tool GUI for viewing various simple technical analysis indicators of a time series Author: Phil Goddard analysis, finance, modeling, technical analysis ch... 55 3
  • 4.25
4.2 | 4 ratings
02 Nov 2009 Screenshot Simulink Signal Viewing using Event Listeners and a MATLAB UI. This demo shows how to use block listeners to view model signals in a MATLAB user interface. Author: Phil Goddard add_exec_event_listen..., event listeners, ui, user interface, rtw, grt 76 17
  • 4.875
4.9 | 8 ratings
12 Jan 2009 Screenshot Pulse with jitter Level-2 m-code S-Function that acts as a pulse generator with jitter around a nominal period. Author: Phil Goddard simulink, pulse, sfunction, generator, jitter 7 0

Contact us at files@mathworks.com