Simulink error: All inputs must be constant.
11 次查看(过去 30 天)
显示 更早的评论
Hey,
I receive the following error message when trying to run the Simulink model.
All inputs must be constant.
P-code function 'p_file.p' produced an error.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/165501/image.png)
Code of the Matlab Function Block:
function y = fcn(m,n)
y = p_file(m,n)
I can run p_file(1,12) from workspace without any problem.
Thank you for any suggestions!
5 个评论
Walter Roberson
2016-6-1
编辑:Walter Roberson
2016-6-1
Sorry, I do not know about that.
Does the p_file use the signal processing toolbox?
回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!