How can I change queue (or rack) maximum content by global table?

How can I change queue (or rack) maximum content by global table?

amir_a
Not applicable
109 Views
4 Replies
Message 1 of 5

How can I change queue (or rack) maximum content by global table?

amir_a
Not applicable

[ FlexSim 17.0.13 ]

Hi, the software only let me change the rack/queue maximum content by a numeric value. I want to have control of maximum content via a global table (or label). Any help is appreciated.

0 Likes
Accepted solutions (1)
110 Views
4 Replies
Replies (4)
Message 2 of 5

joshua_s
Not applicable
Accepted solution

You will need to run code for this to work, you can have this code run on a model reset trigger so it will update everytime you reset the model.

 getvarnode("YourQueue/Rack","maxcontent").value=Table("YourTable")[Row]][Column]
Message 3 of 5

jack80831
Not applicable

model(複雜網路).fsm

Dear @Joshua S

I want to setup the maximum content for the queue from the global table. And I run the code for this on a model run trigger. I want to make the queue maxcontent is 137.

Like this picture.

Image.png

But there is an error.
Image.pngThe number to the Global table is imported by Excel. The Excel will change, so I need to set the number by global table.

Do you know how can I fix this problem?

Thanks a lot.

0 Likes
Message 4 of 5

Ben_WilsonADSK
Community Manager
Community Manager

Hi @黃,

Please post your question as a brand new question. Posting a new question as a comment on a long answered question that already has an accepted answer is not the best way to get help. Please see our best practices article for other tips on using this Question and Answer community. In your new question, you can link back to related older posts if you think that would be helpful for people reading your question.

Also, there is a bug on this community where if you edit your post it loses your pictures and/or attachments. Even though you may still see your images on your post (they're in your browser's cache) I don't see your attached pictures, for instance:

35265-1608047186747.png

If you have to edit your post, be sure to reattach the images and/or files.

0 Likes
Message 5 of 5

jack80831
Not applicable

I will post my question as a brand new question.

Thanks for your request.