GenerateSignal('Type', 'Amplitude=10','T1=1','T2=1')
Arguments
|
'Type' |
Specification of the signal type |
|
|
'Type' = 0 |
Sine function, with A = amplitude and T1 = period |
|
|
'Type' = 1 |
Cosine function, with A = amplitude and T1 = period |
|
|
'Type' = 2 |
Triangle function, with A = amplitude, T1 = rising edge time, T2 = falling edge time |
|
|
'Type' = 3 |
Block function, with A = amplitude, T1 = duration upper level, T2 = duration lower level |
|
|
'Type' = 4 |
Random signal with A = maximum amplitude |
|
|
'Amplitude' |
Optional parameter, specifying the amplitude; default = 10 |
|
|
'T1' |
Optional parameter, time specification 1 (except for type 4) given in s; default = 1 |
|
|
'T2' |
Optional parameter, time specification 2 (only for type 2 and type 3) given in s; default = 1 |
Description
This function generates a test signal with the 'Amplitude' amplitude and periods 'T1' and 'T2.' The following signal types can be created:
Example
Several examples of generated signals
Solution

|
Blue |
Sine function type 0 |
Red |
Cosine function type 1 |
|
Green |
Triangle function type 2 |
Yellow |
Block function type 3 |
|
Purple |
Random function type 4 |