question

Tim Duket avatar image
0 Likes"
Tim Duket asked Sam Stubbs edited

FlexScript not Updating

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.

FlexSim 7.7.4
flexscriptkinematics
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Sam Stubbs avatar image Sam Stubbs ♦ commented ·

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

0 Likes 0 ·
Tim Duket avatar image Tim Duket Sam Stubbs ♦ commented ·

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.

1 Like 1 ·
Adrian Haws avatar image Adrian Haws Tim Duket commented ·

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.

1 Like 1 ·
Show more comments

1 Answer

Tim Duket avatar image
0 Likes"
Tim Duket answered Sam Stubbs edited

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.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Sam Stubbs avatar image Sam Stubbs ♦ commented ·

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 0 ·