embedded matlab function

5 Ansichten (letzte 30 Tage)
Syed
Syed am 19 Jun. 2012
I have an embedded matlab function in a simulink model that takes in a constant input and produces an output that I use to drive a joint actuator. That is,
constant input -> embedded matlab function -> to joint actuator
The issue I'm having is that the embedded matlab function is continuously calculating, which makes the output fluctuating with time.
Is there a way to stop the function after single calculation?

Akzeptierte Antwort

TAB
TAB am 20 Jun. 2012
Put your Embedded Matlab function block in an enabled subsystem and enable it only once at the start of simulation.
See this tread to see how to execute an enabled subsystem one time only.
  1 Kommentar
Syed
Syed am 20 Jun. 2012
Works great! Thank a lot.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by