Error using phased.FMCWWaveform/validatePropertiesImpl
3 次查看(过去 30 天)
显示 更早的评论
*** 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 个评论
回答(1 个)
Ajay Neeli
2021-1-5
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!