03.08.2013 Views

PTOLEMY II - CiteSeerX

PTOLEMY II - CiteSeerX

PTOLEMY II - CiteSeerX

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using Vergil<br />

2.2.2 Executing a Pre-Built Model: A Signal Processing Example<br />

The very first example on the quick tour page is the model shown in figure 2.1. It creates a sinusoidal<br />

signal, multiplies it by a sinusoidal carrier, adds noise, and then estimates the power spectrum. You<br />

can execute this model in either of two ways. First, you can select Run Window in the View menu, and<br />

then click on Go. The result is shown in figure 2.4. The upper plot shows the spectrum of the timedomain<br />

signal shown in the lower plot. Note the four peaks, which indicate the modulated sinusoid. In<br />

the run window you can adjust the frequencies of the signal and the carrier as well as the amount of<br />

noise. These can also be adjusted in the block diagram in figure 2.1 by double clicking on the bulleted<br />

parameters near the upper right of the window.<br />

The second alternative for running the model is to click on the run button in the toolbar, which is<br />

indicated by a red triangle pointing to the right. If you use this alternative, then the two signal plots are<br />

displayed in their own windows.<br />

You can study the way the model is constructed in figure 2.1. Note the Expression actor in the middle,<br />

whose icon indicates the expression being calculated: “signal*carrier + noise”. The identifiers<br />

in this expression, signal, carrier, and noise refer to the input ports by name. The names of<br />

FIGURE 2.3. The quick-tour page.<br />

Heterogeneous Concurrent Modeling and Design 47

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

Saved successfully!

Ooh no, something went wrong!