question

Ssu Ying C2 avatar image
0 Likes"
Ssu Ying C2 asked Aaron S6 answered

Queue content number

Hello,

My Flexsim version is 7.1.4

I'm trying to figure out how to take a decision, based on the content of a Queue. I would like to know how can I get the Queue's current content number.I'v try

int Queue = model().find("Queue3");

if (Queue.subnodes.length >0)

But it can't work .

FlexSim (other)
FlexSim (other - please specify)
queue contentcontent queue
5 |100000

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

Joshua S avatar image
2 Likes"
Joshua S answered Ssu Ying C2 commented

FlexSim 7 has some different commands then the later versions. Use the sampling tool on the queue to see some of the different commands. Some of the differences include:

treenode Queue= node("LQ", model());//use instead of model().find("LQ")

content(Queue);//use instead of Queue.subnodes.length

The methods you are using are for more current versions.

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

Ssu Ying C2 avatar image Ssu Ying C2 commented ·

Hello,

It works! Thank you.

0 Likes 0 ·
Aaron S6 avatar image
0 Likes"
Aaron S6 answered

Try this @Ssu Ying C2:

int Queue = model().find("Queue1>stats").subnodes[4].value

Where "Queue1" is the name of your queue. This populates variable "Queue" with the current value of Queue1.

5 |100000

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