closed loop variable in Embedded matlab function

I used a variable in all my embedded matlab program which is actually a dynamic variable. (rotor position in switched reluctance motor). My motor torque always remains zero even though no error in the simulink. How to achieve closed loop variable be updated inside the embedded matlab program????

1 Comment

Do you mean, you are using a variable in more than one 'Embedded Matlab Block' in a model?
What do you mean by "closed loop variable"

Answers (0)

This question is closed.

Asked:

on 2 Jan 2012

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!