question

Oussama M avatar image
0 Likes"
Oussama M asked Parker S answered

FlexScript exception: Label property type retrieved on /Processor1/"1".

test 5.fsmHello,I have a sample example of one machine. there are 5 items where each one is characterized by a processisng time with Normal (mean and deviation) distribution. These processing times are define in the table "TablePT". How can I define these values in the processor.

I obtained the error : time: 0.000000 exception: FlexScript exception: Label property type retrieved on /Processor1/"1". Label does not exist. at MODEL:/Processor1>variables/cycletime

The file is attached.

Thank you in advance for your help.

FlexSim 20.0.1
flexscript
capture.png (1.1 MiB)
test-5.fsm (26.3 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

Parker S avatar image
3 Likes"
Parker S answered

It looks like you are trying to access the values in your TablePT using item.type which has not been set.

There are many places you can set labels on items, one of which is on the Source properties:

Add the "type" label on your Source1 like I've done here and your model will work.


1613152237330.png (30.3 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.