question

Amelie C avatar image
0 Likes"
Amelie C asked Matthew Gillespie edited

Demperical(GlobalTable) returns the wrong values of another GlobalTable

As you can see in the model, for every order entering the shop floor, a certain volume is assigned. The distribution of these volumes are dependent on the type of the orders (LEM,REM,LS). I have used three global tables for the values of the volumes (one global table for each type of order).

When you look at the process flow, you can see the assignment of the volume in assign volume. Type 1 is LEM, type 2 is LS and type 3 is REM. For LS and LEM the correct volumes are assigned to the orders when you run the model, for REM, the wrong values are assigned. I think these are the values for the type LS.

Can someone help me where there is a mistake for the volume values of the REM orders ?

Thank you ! huidigepoging4.fsm

FlexSim 20.0.0
global tabledemperical
huidigepoging4.fsm (102.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

·
Matthew Gillespie avatar image
3 Likes"
Matthew Gillespie answered Matthew Gillespie edited

You're assigning a "type" label on token.item and then using "token.item.type" for the case function. However, you'll notice that the word "type" is purple indicating that this is a property and not a label value. What's happening is that the Variant class has a "type" property that tells you what type of Variant it is. (See Variant.type for more information)

Basically, you need to change all your "type"s to "Type" so that you get the label called "Type" on the item instead of getting the variant type of the token.item variant.

· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

@Matthew Gillespie, isn’t there the mechanism to test, if the label exists by the question mark. I have read or heard that this mechanism makes it possible to get values from label names matching with property name?

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Joerg Vogel commented ·

You put a # in front of the label name

token.#type
3 Likes 3 ·

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.