Borrar filtros
Borrar filtros

Error using phased.FMC​WWaveform/​validatePr​opertiesIm​pl

5 visualizaciones (últimos 30 días)
Robin Amar
Robin Amar el 8 de Dic. de 2020
Respondida: Ajay Neeli el 5 de En. de 2021
*** Error ***
Error using phased.FMCWWaveform/validatePropertiesImpl (line 348)
The product of SampleRate and SweepTime must be all integers.
*************
Below is the Code snippet which I'm using:
=====================================================
fc = 77e9;
c = 3e8;
lambda = c/fc;
range_max = 200;
tm = 15*range2time(range_max,c);
range_res = 0.78;
bw = range2bw(range_res,c);
sweep_slope = bw/tm;
fr_max = range2beat(range_max,sweep_slope,c);
v_max = 230*1000/3600; % Maximum unambiguous speed detectable -> 230km/h
fd_max = speed2dop(2*v_max,lambda);
fb_max = fr_max+fd_max;
fs = max(2*fb_max,bw);
waveform = phased.FMCWWaveform('SweepTime',tm,'SweepBandwidth',bw,...
'SampleRate',fs);
sig = waveform();
=====================================================
I need to customize the Inter-Chirp Time ("tm") & sampling freq as per the application. But when I do it, The api: "phased.FMCWWaveform" throws an error. Has anyone faced such an Issue!!
Any hacks to solve it?
Thanks for helping & guiding!

Respuestas (1)

Ajay Neeli
Ajay Neeli el 5 de En. de 2021
The error is due to the requirement that the product of SampleRate(fs) and SweepTime(tm) must be all integers.
As mentioned in the documentation, the quantity (SampleRate .* SweepTime), a scalar or vector, must contain only integers. You may modify these parameters such that the requirement is fulfilled.
Details on the phased.FMCWWavform System Object, including the integer requirement described here, may be found at the following URL:

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by