chirp
Purpose:
-
Generate a swept-frequency cosine signal for system identification.
Enter:
-
chirp <priority> <output_variable> <active> [duration] [start_freq] [final_freq] [method] [initial_phase]
Where:
-
priority
Specify the task priority as an integer.
output_variable
Specify the output variable of chirp result.
active
Specify the name of the logical variable that controls the active flag.
duration
Optional. Specify the duration of the sweep in seconds. The default is 1 second (1s).
start_freq
Optional. Specify the starting frequency in Hz. The default is 0Hz.
final_freq
Optional. Specify the final frequency in Hz. The default is 25Hz.
method
Optional. Specify the method. The default is ‘lin’. Other options are ‘quadr’ and “log”.
initial_phase
Optional. Specify the initial phase in degrees. The default is 0 degrees.
Example:
-
chirp 19 chirp_out chirp_active 10 0.1 10 ‘lin’ 3.14 &’
Notes:
-
Ensure that the final frequency is greater than the starting frequency when using the ‘log’ method; otherwise, an error occurs.