syntax error in simulink

1 vue (au cours des 30 derniers jours)
Fadzliana Aida
Fadzliana Aida le 3 Juil 2020
Commenté : Fadzliana Aida le 5 Juil 2020
i cannot run my simulation due on this function. can you help me to identify the problem.
p(1)*u(2) + p(2)*u(1) + p(3)*u(1)*u(1) + p(4)*u(1)*u(2) + p(5)
  3 commentaires
Fadzliana Aida
Fadzliana Aida le 3 Juil 2020
I am new in simulink, and also have no basic in simulink. and i cant figure out the problem. please help me on my project. the error function was in the intake manifold. thank you for your response.
Walter Roberson
Walter Roberson le 3 Juil 2020
In what you attached, there is no intake manifold, and no blocks that might have the error you posted.

Connectez-vous pour commenter.

Réponses (2)

Fadzliana Aida
Fadzliana Aida le 3 Juil 2020
is the internal parameter of the throttle and manifold, there's a intake manifold. when you click twice there are a block convert to mass change and that is where the synax error function happen.
  1 commentaire
Walter Roberson
Walter Roberson le 3 Juil 2020
There are nothing marked as being throttles or manifolds in what you posted.

Connectez-vous pour commenter.


Fadzliana Aida
Fadzliana Aida le 3 Juil 2020
here sir. hope you can help
  2 commentaires
Walter Roberson
Walter Roberson le 3 Juil 2020
That code works fine when I try it in isolation.
I have attached an example model that uses the block typed in by hand (since you have not attached the actual block.)
Note that in order to use it, you must have a workspace variable named p that has at least 5 elements. The fcn block can use variables other than u but they must be workspace variables.
Fadzliana Aida
Fadzliana Aida le 5 Juil 2020
my simulation is work. thank you so much for your help

Connectez-vous pour commenter.

Catégories

En savoir plus sur Event Functions dans Help Center et File Exchange

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by