Compute delay introduced by Sample-Rate Match block
Determine Delay for Rate Matched 5G and LTE Signals
Resample a 5G signal at 7.68 MHz and an LTE signal at 3.84 MHz to a higher rate of 15.36 MHz.
inpRates = [7.68 3.84]*1e6; inpLengths = [1e3 1e3]; outRate = 15.36e6; outLength = 1e3;
Determine delay incurred for a model configured for multitasking mode.
d = srmdelay(inpRates,inpLengths,outRate,outLength)
d = 2×1 1024 1048
Determine Delay for Rate Matched WLAN and 5G Signals
Resample a WLAN signal at 20 MHz and a 5g signal at 15.36 MHz to a higher rate of 30.72 MHz.
inpRates = [20 15.36]*1e6; inpLengths = [2 1]*10; outRate = 30.72e6; outLength = 50;
Determine delay incurred for a model configured for single-tasking mode.
d = srmdelay(inpRates,inpLengths,outRate,outLength,"singletasking")
d = 2×1 145 174
inputrates — Input sample rates
Input sample rates in Hz, specified as a 2-element vector of positive values.
inputlengths — Input lengths
Input lengths in samples, specified as a 2-element vector of positive integer values.
outputrate — Output sample rate
Output sample rate in Hz, specified as a positive scalar.
outputlength — Output length
Output length in samples, specified as a positive integer.
mode — Tasking mode
"multitasking" (default) |
Tasking mode of the model, specified as either
"singletasking". The Treat each discrete rate as a
separate task parameter of the Solver controls the
mode of the model. For more information on the Treat each discrete rate as a
separate task and Solver parameters, see Solver Pane (Simulink).
delay — Sample rate match delay
Sample rate match delay in samples, returned as a 2-element column vector. The first element corresponds to the delay introduced in the first input and the second element corresponds to the delay introduced in the second input.
Introduced in R2022b