FlexScript not Updating

FlexScript not Updating

tim_duket
Not applicable
99 Views
6 Replies
Message 1 of 7

FlexScript not Updating

tim_duket
Not applicable

[ FlexSim 7.7.4 ]

Occasionally while adjusting a model I am finding that updates to my code don't take effect.

I'm currently working on a kinematic model, and at times I will make changes to the movement code, apply, reset, & run, but don't see the changes take effect. I have tested by commenting out entire kinematic commands, but the motion still takes place.

All of my FlexScript is in triggers on processors and queues.

I have tried saving, restarting FlexSim, saving as a new version, etc.

The error doesn't always happen, but once it starts happening I can never get it fixed. I usually give up and come back to it later and it often works. There must be some setting or configuration I am messing up but I don't know how to troubleshoot for it.

Has anyone experienced this before? Any troubleshooting advice? Thanks.

0 Likes
Accepted solutions (1)
100 Views
6 Replies
Replies (6)
Message 2 of 7

sam_stubbsYXX86
Community Manager
Community Manager

Do you have a copy of the model, or an example we could take a look at?

0 Likes
Message 3 of 7

tim_duket
Not applicable

Unfortunately the model can't be shared, and I'm not sure I could recreate the issue - just wanted to see if there was a clear fix. I'm back in FlexSim now and it's not having this issue, so I'll just keep going and hope for the best.

Message 4 of 7

sam_stubbsYXX86
Community Manager
Community Manager

Okay, well if it keeps occurring again let us know. We'll try and help you troubleshoot it if the problem arises again.

0 Likes
Message 5 of 7

adrian_haws
Not applicable

If at any point you need to share a model to receive support, and do not wish for it to be public, there is an option to ask a private question that only FlexSim moderators can access.

If you do come across this issue again feel free to let us know, and to give us some specifics of what seemed to cause it.

Message 6 of 7

tim_duket
Not applicable
Accepted solution

Thanks for the responses. After playing around with it a little more it seems to be caused by how I am using initkinematics and updatekinematics. I'm not sure how my misuse of these commands is causing the issue I posted about, but if I adjust where I place them in the code then it changes whether the issue occurs or not.

0 Likes
Message 7 of 7

sam_stubbsYXX86
Community Manager
Community Manager

As the model reads through the logic of your code, and objects and other bits of code are called and interact with your code, it's important to have your logic in the right place. I'm glad you were able to find where it could work.

0 Likes