Using the block Signal.

The block SIGNAL is used to create wave forms like square waves, sinusoidal and triangular waveforms. Select the block TIME and SIGNAL from Components/Blocks/Source

<br>Click to close the image The block SIGNAL is used for creating the sinusoidal wave form. Open the block SIGNAL by clicking it with the right mouse button. The third parameter indicates the type of the signal. There are various wave forms possible such as sinusoidal, square wave, triangular, etc. Change the third parameter into 3 to select a sinusoidal wave form. <br>Click to close the image

Please note that in most cases the first input has to be connected to the block Time. The type of the waveform is defined by parameter p3. Open the component properties by clicking the block Signal with the right mouse button.

The phase in the block Signal is measured in radians (0 .. 2*π) It changes the phase of a sinusoidal signal, but also of the other periodic signals like the square wave and traingular. If the phase is set to zero, the sinusoidal starts from the origin at zero, if it is nonzero, the sinusoidal is sin(2*π*frequency*time-phase) at starts at time zero with sin(-phase).

The following simulation shows various wave forms that can be created using the signal block.

<br>Click to close the image

The parameters for the block SIGNAL are defined in the reference guide and the online help. Below is an excerpt from the reference guide:




Signal generator
Inputs(6)time DC AC F Phase d
Parameters(3)y0 t0 p3
Defaulty0=0, t0=0, p3=1,
Select fromComponents/Blocks/Source
FunctionInputs:
InputTypeDescription
1TConnect this input to the output of the block Time (s)
2DCDC Offset
3ACAmplitude of the signal
4FFrequency of the signal (Hz)
5PhasePhase of a repetitive signal (Rad)
6dDuty Cycle of a repetitive signal (0..1)
Parameters:
ParameterTypeDescription
p1Y(0)Initial value of the block signal if t<Tdelay
p2TdelayThe waveform is delayed by Tdelay seconds
p31 .. 8Select the waveform of the signal by entering the number of the waveform as indicated by the table Waveform.
Waveform:
ParameterValueWaveformDefinition
p31SquarewaveRepetitive squarewave with frequency F and duty cycle d. The duty cycle d defines how long the amplitude is positive.
p32TriangleRepetitive triangle waveform with frequency F and duty cycle d. The duty cycle d defines how long the waveform is rising from DC-AC to DC+AC. Set d=1 to create a rising sawtooth. Set d=0 to create a falling sawtooth
p33Sinusoidaly=DC+AC*sin(2*PI*F*t-Phase)
p34PulseFor t<1/F the ouput equals DC+AC, if t>1/F the output equals DC
p35StepIf t>Tdelay, the output becomes DC+AC
p36SawRepetitive triangle waveform with frequency F and duty cycle d. The duty cycle d defines how long the waveform is rising from DC-AC to DC+AC.
p37CenterCentered square wave. The width of pulse of the squarewave is defined by the input d. For d=1, the output is a squarewave. For d <1 the width of pulse of the squarewave is equal to (1/2)*(1/F)*d.
p38TrapezoidalCentered trapezoidal wave. The width of maximum part of the waveform is defined by the input d. For d=1, the output is a squarewave. For d <1 the width of maximum part of the wave is equal to (1/2)*(1/F)*d. For d=0, the output is a triangle waveform.


SCOPE1:P3=3
<br>Click to close the image



SCOPE2:
<br>Click to close the image



SCOPE3:
<br>Click to close the image



SCOPE4:
<br>Click to close the image



SCOPE5:
<br>Click to close the image



SCOPE6:
<br>Click to close the image



SCOPE7:
<br>Click to close the image



SCOPE8:
<br>Click to close the image
  • Trace[1]:Output at (CENTER)



SCOPE9:
<br>Click to close the image
  • Trace[1]:Output at (TRAPEZOIDAL)
© 2018 CASPOC, All rights reserved. Home   |   Terms and Conditions   |   Legal   |   Export Compliance   |   Privacy Policy   |   Site Map