MATLAB Answers

Local variable created as global in code.

2 views (last 30 days)
Namrata Biranje
Namrata Biranje on 9 Mar 2020
Edited: stozaki on 10 Mar 2020
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".

  0 Comments

Sign in to comment.

Answers (1)

stozaki
stozaki on 10 Mar 2020
Edited: stozaki on 10 Mar 2020
In the flowchart, initialize as a condition action before the condition.

  0 Comments

Sign in to comment.

Sign in to answer this question.

Products


Release

R2010b