필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Local variable created as global in code.

조회 수: 2 (최근 30일)
Namrata Biranje
Namrata Biranje 2020년 3월 9일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello,
In my model , I have created one local variable countA but in code it is generated as global.What configuration setting i need to do or what changes I need to do in my model. Accel Count is 4/2/1 depending upon the input.So every 5 ms I am checking the CountA and incrementing if it not equal to AccelCount.Once it is equal it will call the event and set to 0.
In configuration settings,I have tried all the values of " Optimize global data access".

답변 (1개)

stozaki
stozaki 2020년 3월 10일
편집: stozaki 2020년 3월 10일
In the flowchart, initialize as a condition action before the condition.

이 질문은 마감되었습니다.

제품


릴리스

R2010b

Community Treasure Hunt

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

Start Hunting!

Translated by