question

hcon avatar image
0 Likes"
hcon asked Logan Gold commented

FlexScript exception - Label does not exist.

Hi All,

this is my first review of FlexSim and my first model. I'm trying to model a system where one source creates two different parts.

I get this message in the systemETAPA 2LAB 3.fsm console everytime a part is processed:

time: 720.000000 exception: FlexScript exception: Label property Type retrieved on /Ensamblado externo HELEN/Product. Label does not exist. at MODEL:/Ensamblado externo HELEN>variables/cycletime

Also, the system is not working as expected. What am I doing wrong?

Thank you.


imgerror.png

FlexSim 19.0.0
set label
imgerror.png (279.5 KiB)
etapa-2lab-3.fsm (223.5 KiB)
· 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.

Logan Gold avatar image Logan Gold ♦♦ commented ·

Hi @hcon, was Jesús Evangelista's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jesús Evangelista avatar image
0 Likes"
Jesús Evangelista answered

Hello!

The error appears because you are trying to use the label "Type" at the trigger I point on the image, but the label hasn't been set previously:

1730089359134.png

In order to correct that, you will need to set the label "Type" in a previous process.

I will show two ways to get that done, which I will add to your model, sou you have it.

The first one is adding and setting the label and the value in the Source, like I show in the image.

1730089575315.png

Other option is to add it and set it in the Processor. Since we're using the value of Type to set the Process Time, the label needs to be set before processing it. Go get that we can use a trigger "On Entry", just like I show:

1730089914422.png

Looking to your model I noticed that there was a central connection missing on the processor, I added it to the operator near the Processor, I hope that was correct.

The model with the modifications works, look at it.

To practice you can look at the tutorials: https://docs.flexsim.com/en/21.1/Tutorials/FlexSimBasics/BasicsOverview/BasicsOverview.html

Or look for some videos on Youtube.

Hope it helps! etapa-2lab-3.fsm


1730089359134.png (476.0 KiB)
1730089575315.png (49.9 KiB)
1730089914422.png (490.3 KiB)
etapa-2lab-3.fsm (223.5 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.