question

JIANYUAN, HALLEY L avatar image
0 Likes"
JIANYUAN, HALLEY L asked JIANYUAN, HALLEY L commented

Unable to pull with condition from global list

Hello all,

I am having trouble with a pulling condition: Table("GlobalTable1")[1][1] >= 1

I am setting up a model that runs after values are keyed into the global table via excel. Items would be sent to various queues and pulled to the processors. There is no problem with pulling from the global list as I am able to pull if condition is set to be "true" (as seen in queue3).

However, if I were to use the condition mentioned above, it would not work. The weird part is if I were to use the default Table("GlobalTable1")[1][1] == 1, the system works as well. Have I done something wrong? Please do advise if it is the case. If it is possible, please try not to use the tracked variable data as it would mess with the model runs.

Appreciate all help with this!

test-14.fsm

FlexSim 20.0.0
global tableitem flowpull from list based on condition
test-14.fsm (43.3 KiB)
· 6
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
0 Likes"
Matthew Gillespie answered JIANYUAN, HALLEY L commented

Processors 1 and 2 aren't pulling because the first time they try to pull your condition is false. So they don't pull any thing the first time. They never try to pull again because that code is only fired when the processors first become available to pull something.

Basically, this is an inappropriate case to use that condition field. You want your processors to wait for a certain condition to be met before pulling something, not try to pull and give up if the condition isn't met.

· 5
5 |100000

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