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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement