question

Julio R avatar image
0 Likes"
Julio R asked Julio R answered

Wait for event fails to listen to a tracked variable

Hello,

I am having a problem linking a wait for event to a tracked variable in a operator.

I have seen that if we have a tracked variable as a label in an operator the wait for event offers a trigger to listen a change in the label value. This is not avaliable if the label is not a tracked variable.

When I use it, it display an error even before the event is treggered.

What am I doing wrong.

Here is the simplest example of this:

Tracked Variable error.fsm

FlexSim 21.0.2
wait for eventflexsim 21.0.2tracked variables
· 2
5 |100000

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

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hello @Julio R,

I am not seeing the error in the model you posted. I added to the model a little, so I could see if the error occurred when I tried to change the tracked variable value but it seemed to work just fine.

tracked-variable-error _1.fsm

I noticed you do not have the most recent bug fix selected as your version. Could you try updating and see if that fixes it? If not, could you change your model and try another example?

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Julio R,

We haven't heard back from you. Were you able to solve your problem? Check out Jeanette's comment and let us know your current situation.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

1 Answer

Julio R avatar image
1 Like"
Julio R answered

Sorry for that @Ben Wilson,

That model didn´t have the problem, I did fix it but I had to substitute the reference that gives the sampler in the wait for event for a written one like this fot it to work :

The original reference that gives the sampler looks like this and I could not meke it work.

Thank you!


1617511518574.png (15.4 KiB)
1617511577585.png (17.4 KiB)
5 |100000

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