Simulink error: All inputs must be constant.
Mostra commenti meno recenti
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 Commenti
Walter Roberson
il 1 Giu 2016
If you call
y = p_file(1,12);
in the Function Block, then does that work?
wkm42
il 1 Giu 2016
wkm42
il 1 Giu 2016
Walter Roberson
il 1 Giu 2016
Modificato: Walter Roberson
il 1 Giu 2016
Sorry, I do not know about that.
Does the p_file use the signal processing toolbox?
wkm42
il 2 Giu 2016
Risposte (0)
Categorie
Scopri di più su Simulink Functions in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!