Fixed Point Tool not working with Matlab Function Block in Simulink

1 次查看(过去 30 天)
Hello everyone,
I have a rather simple model containing two Matlab function blocks with the following code:
function valueAtIndex = fcn(tappedDelays, index)
% Extracts the value of a vector signal at a specified index.
valueAtIndex = tappedDelays(index);
Now I'm trying to use the Simulink Fixed-Point Tool to derive an appropriate fixed-point representation of the model.
However, the Fixed-Point Advisor keeps telling me that my system contains blocks that do not support fixed-point data types and lists the MATLAB function blocks I mentioned above.
How can that be? In the Model Explorer, I can without any problems specify my function to take fixed-point arguments, therefore I'd say the error message is plain nonsense!
What I wanted to do is let the Fixed-Point Advisor propose optimal fixed-point types to me. Is there any possibility to have it do so?
Kind Regards and thanks in advance,
Eike
  2 个评论
Eike
Eike 2012-3-21
Also see my other question on the reason why I created such an embedded matlab function: http://www.mathworks.com/matlabcentral/answers/33009-simulink-block-to-extract-signal-at-index-from-vector-signal-doesn-t-exist
Eike
Eike 2012-3-21
And by the way, why is the search engine at MATLAB answers so bad? I always get loads and loads of results that have about nothing to do with my search terms.
Would be pretty nice if there was an update some day!

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Fixed-Point Designer 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by