prbs
Purpose:
-
Generate pseudo random binary sequence for use as an input in system identification.
Enter:
-
prbs <task_priority> <process_interval> <prbs_order> <prbs_out> <prbs_active>
Where:
-
task_priority
Specify the task priority as an integer between 1 and 19.
process_interval
Specify the process interval in milliseconds. This is the rate to process the computations.
prbs_order
Specify the PRBS order as an integer between 2 and 16.
prbs_out
Specify the output variable for the PRBS result.
prbs_active
Specify the logical variable name for the active ON/OFF flag.
Example:
-
prbs 19 40 8 prbs_out prbs_active &
Notes:
-
Sampling rate should correspond to 4-5 times the significant frequency.
PRBS_period = 2 * (2m – 1) *Ts, where m is the selected order and Ts is the sampling period; 1/PRBS_period should be a frequency 5-10 times lower than the frequency of interest.