- Index
- » Programming
- » Modelica Language
- » how to properly debug code
how to properly debug code
how to properly debug code
Hi, third topic in the last few days ... but at this point my project is nearly finished and my understanding of modelica is getting better and better.
i got as far as simulating but one boolean variable doesnt behave as it should and i cant find the error.
unfortunatly the attatchments in this forum seem to be broken so i cant provide you a immage of the Plot.
What i can say that the Booliean condition is B = A<18 ; and a is >18 nearly all the time but B gets true on the first time A gets smaller than 18 and stays true besides A getting bigger than 18 again. can someone explain why this behavoir can happen and how to fix it?
replacing the condition with a small if condition doesnt help at all.
Re: how to properly debug code
- adrpo
- 885 Posts
- Index
- » Programming
- » Modelica Language
- » how to properly debug code