03.08.2013 Views

PTOLEMY II - CiteSeerX

PTOLEMY II - CiteSeerX

PTOLEMY II - CiteSeerX

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using Vergil<br />

Then using these ports, create the diagram shown in figure 2.24 1 . The Gaussian actor creates values<br />

from a Gaussian distributed random variable, and is found in the Random library. Now if you close<br />

this editor and return to the previous one, you should be able to easily create the model shown in figure<br />

2.25. The Sinewave actor is listed under sources, and the SequencePlotter actor is found in sinks.<br />

Notice that the Sinewave actor is also a hierarchical model, as suggested by its red outline (try looking<br />

inside). If you execute this model (you will probably want to set the iterations to something reasonable,<br />

like 100), you should see something like figure 2.26.<br />

FIGURE 2.24. A simple channel model defined as a composite actor.<br />

FIGURE 2.25. A simple signal processing example that adds noise to a sinusoidal signal.<br />

FIGURE 2.26. The output of the simple signal processing model in figure 2.25.<br />

1. Hint: to create a connection starting on one of the external ports, hold down the control key when dragging, or<br />

on a Macintosh, the command key.<br />

Heterogeneous Concurrent Modeling and Design 61

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!