embedded matlab function

조회 수: 9 (최근 30일)
Syed
Syed 2012년 6월 19일
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?

채택된 답변

TAB
TAB 2012년 6월 20일
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
Syed
Syed 2012년 6월 20일
Works great! Thank a lot.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by