Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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.

Edited by: Pyrukar - Feb-24-21 01:09:17

Re: how to properly debug code

Paste your image to https://pasteboard.co/ and link it here.

Re: how to properly debug code

There are 0 guests and 0 other users also viewing this topic
You are here: