反復サブシステム実行中の割り込みについて
Show older comments
simulink上で
For,Whileを使用し、無限ループ状態とし、
割り込み関数での状態変化を待つ設計は可能でしょうか。
while前後に処理があるため、
whileを時間周期で実行するのは避けたいと考えてます。
int cnt;
/* MAIN*/
int main(void)
{
while(true)
{
if(cnt > 2)
{
break;
}
}
}
/* interrupt */
void interrupt()
{
cnt++;
}
Accepted Answer
More Answers (0)
Categories
Find more on Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!