Error using phased.FMCWWaveform/validatePropertiesImpl
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
*** 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!
0 Kommentare
Antworten (1)
Ajay Neeli
am 5 Jan. 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:
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!