Simulink error: All inputs must be constant.

조회 수: 13 (최근 30일)
wkm42
wkm42 2016년 6월 1일
댓글: wkm42 2016년 6월 2일
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.
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
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?
wkm42
wkm42 2016년 6월 2일
Probably it does, but i don't know it for sure, cause i don't have the .m file. It's some kind of filter.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by