Lab 1
Lab 1
Exercise 2
+ Square Wave
out 2 Hz Square Wave ck
3 2 1 0 -1 -2
-3 The constant block is used as a starting point placed at -3 for the square wave.
+ +
2
out 2 Hz Triangle Wave ck
Sawtooth Wave
out 2 Hz Sawtooth Wave ck
Exercise 3
+ Plot 4 3
5 Hz Rect. Pulses
out ck
2 1 0 -1
-2
+ +
-2 -3 0 2 4 Time (sec) 6 8 10
Exercise 4
Plot Impulse t= 2.5 2 1 0 -1 0
10
10
2 1 0 -1 0 1 2 3 4 5 6 Time (sec) 7 8 9 10
Exercise 5
The conversion block converts a number to a degree and vis versa.
100 Real -> dB dB -> Real
40.
100.
20.
100 Power -> dB dB -> Power 100.
1.44222 1.2
-0.8 Re/Im to im Mag/Ph
re mag ph mag Mag/Ph ph
1.2
to
re im
Re/Im
-.8
-.588003
45 15
.785398
rad -> deg
45.
Hz -> rad/s
94.2478
rad/s -> Hz
15.
Exercise 6
The constants are bits from LSB to MSB which are converted from bits to a symbol or number then converted back one from MSB the other from LSB. 1 0 1 1
11.
1. Sym->4 (LSB) 1. 0 1.
Exercise 7
Plot 1.0
The ramp provides the slop while the sin provides a sign wave and the sign provides a square wave.
.5 0 -.5
sin
-1.0 0 sign 2 1 0 -1 -2 0 2
10
4 6 Time (sec)
10
Exercise 8
+ Plot functions (XY Plot) 20 15 10 The formulas are displayed in waveforms on the plot. 5 0 -5 + + -x^3 +4.2x -5 -4 y(x) -10 -15 -20 -25 -30 -35 -40 -4 -3 -2 -1 0 1 2 Time (sec) 3 4 5 6
Exercise 9
Plot 1.00 .75 .50 1 Hz Sine ph (1 V) 1 Hz Cosine ph (1 V) .25 0 -.25 -.50 -.75 -1.00 -1 -.5 0 Time (sec) Plot 1.0 1 Hz Sine ph (1 V) .5 0 -.5 -1.0 -1 .5 1
1 Hz Sine ph (1 V)
-.5
0 Time (sec)
.5
Exercise 10
sig rs
+3. dB
sig rs
29.9854
1.0 .5 -3. dB
23.9854
sig rs
-2.0 0
.5
2.5