question

superanto00 avatar image
0 Likes"
superanto00 asked Joerg Vogel edited

Problem with labels

I’m trying to get the time where each product passes through each processor and have created labels in the source to help with it. However, in the last queue I have created a custom code in an on exit trigger referring to those labels created in the source but I am getting the following error even though the labels actually exist : “time: 1694.607568 exception: FlexScript exception: Label property Type retrieved on /Queue15/Product. Label does not exist. at MODEL:/Queue15>variables/exittrigger “TG3 - 2.0.fsm

FlexSim 21.0.10
set labellabel does not exist
tg3-20.fsm (83.9 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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel edited

The labels are existing at your item on container item as pallet. BUT they don't exit at your pallet, which is in your function currently the reference of item.

you can get access to your item on the pallet by

item.first.yourLabelname

or you copy the items from item to pallet!

5 |100000

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

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.