Phased Array Simulink modeling, Barrage

Error message:
The SamplesPerFrame property must be a positive, integer valued scalar.
Basically I am trying to get samples per frame:
so frequency I input 10e6, 100e6,...etc
(1e6*1)*(10e-6) = 10 samples per frame
(1e6*1)*(100e-6) =100 samples per frame
but if I change pri, I get:
(1e6)*(150e-6) = 150.0000 samples per frame I'll get error message, this is not valid
and I tried ceil(), round(), and fix()
it's either minus or add 1 value which will running to array matrix size not matching error.
Is there any ways I can force integer to integer not doubles? how do I convert that in "Simulink"
some pri works some don't, why?
how do I just get a non-double integer?

回答 (1 件)

Honglei Chen
Honglei Chen 2016 年 8 月 25 日

0 投票

If you always outputing multiple number of pulses, then you may want to consider setting OutputFormat to Pulses and simply specify the number of pulses. Otherwise, you can try to use round() to get the closest integer.
HTH

2 件のコメント

SHU CHEN
SHU CHEN 2016 年 8 月 25 日
yes. the setting is correct, the simulation sometimes works, sometimes doesn't.
and it's telling me to use integer. and I did round() so it round up when I was playing with the model. and that generated array dimension not matching. I am confused.
Honglei Chen
Honglei Chen 2016 年 8 月 25 日
It's hard to pinpoint the issue without looking at the model. If you could share your model, I can take a look. Also if you are willing to share the model, please indicate which release you are working with.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

質問済み:

2016 年 8 月 25 日

コメント済み:

2016 年 8 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by