Model acting odd
-
I was trying to pass some timing information from the global variable stored in the static floor to some blocks and came across some strangeness. If I open the model and unclick and then reclick the scripted checkbox in the blocks then it works. If I just run the simulation after opening it I get an error. Any insights?
-
It probably is bad form to reply to your own post but I'll do it anyway. The fix is to use setVar and getVar as often as possible and also to use the @@var form of variables and to avoid global variables ($var)whenever possible.
Advertisement