Error using phased.FMCWWaveform/validatePropertiesImpl
5 ビュー (過去 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!