question

Miguel Pereira avatar image
0 Likes"
Miguel Pereira asked Miguel Pereira edited

Increment Label not working

Hey everyone,


I'm almost finishing my big project but i have a problem, my Increment Label isn't working at all.

I've used the "view activities" on the process flow to see the value it's coming there but it isn't going the way i want it to go. It starts well, but in the first time i want to increment isn't working at all. It's going to the same value as it is in the start.


I'm using an assign label to go for each element of a group, so it starts in the 1st one and then should go to the 2nd spot but it isn't going. Its stuck in the first one...

It's this one:

1627398789189.png

I don't know what's causing this problem.

Thanks, Miguel Pereira.

FlexSim 21.0.5
label assignmentassign labelsflexsim 21.0.5increment label
1627398789189.png (80.0 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.

1 Answer

·
Jeanette F avatar image
0 Likes"
Jeanette F answered Miguel Pereira commented

Hello @Miguel Pereira,

I placed breakpoint in the code for the increment label. It does increment the label. I saved the model with the breakpoint in it in hopes that it helps you debug your model. Maybe the token isn't following through the process flow how you expect it to.

seguido_JF.fsm


seguido-jf.fsm (874.5 KiB)
· 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.

Miguel Pereira avatar image Miguel Pereira commented ·

Yeah, in fact it does increment. But then i don't know why isn't it working, shouldn't it go to another element of the group?

In the activity "Travel até Local de Load", appears on the left of this increment.

0 Likes 0 ·
Miguel Pereira avatar image Miguel Pereira commented ·

I've solved it, it wasn't working because i couldn't have my Wait for event there, i had to use a connector for it. Like this:

1627467939206.png

0 Likes 0 ·
1627467939206.png (8.3 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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