- I don't think the Demux block works with function-call signals. Try the Function-Call Split block instead.
- I've only just heard about generating function-calls with the MATLAB Function block, so I don't know the answer to that question, but I'd say to try it out with some simple blocks and see if the behavior makes sense. :)
Function call use in an Embedded MATLAB Function block
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I have two questions about the use of function call outputs of an EMF block :
Question 1
I would like to know why I can not use a Demux block after a Function Call Output of an Embedded MATLAB Function block. This error appears in the Simulink window :
For the « Matlab Embedded Function » bloc : " Error in port widths or dimensions. Output port 1 of 'F_Call/Emb_Sdl' is a one dimensional vector with 1 elements. "
For the « Demux » block: " Invalid setting for input port dimensions of 'F_Call/Demux1'. The dimensions are being set to 1. This is not valid because the total number of input and output elements are not the same. " "
So is it possible to specify Dimension and/or Width of a Function Call Output port and how to do that ?
Question 2
If the EMF block have several Function Call Outputs (for example : Port_A; Port_B; Port_C), does the order of the ports (their placement) will impact the order of execution ?
If it's not clear do not hesitate to ask me more details.
Thanks
0 个评论
采纳的回答
Kaustubha Govind
2012-3-30
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Schedule Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!