question

Hsu avatar image
0 Likes"
Hsu asked Felix Möhlmann commented

How to set control center?

I have two sources. I set up a queue to serve as the control center. The leftsource cannot be detected by the control center, so the only result is a red box.

1714639741533.png

Figure 1 is the placement of my entire machine.1714639787335.png
1714639822018.png
Pictures 2 and 3 are what I set up. I hope leftsource can produce blue boxes and rightsource can produce red boxes.

1714640005674.png

Figure 4 is the control center I set.
Please tell me if there is any problem
FlexSim 22.2.0
data sourceline controllermulti-product processing
1714639741533.png (588.0 KiB)
1714639787335.png (298.3 KiB)
1714639822018.png (276.5 KiB)
1714640005674.png (129.6 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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

"LeftSource" creates items based on an inter-arrival time. The first item creation would happen instantly, but an item should appear if you run the simulation for some time.

You removed the header from the entry trigger. Without it neither "current" nor "item" are defined variables. And apart from "content" none of the commands you use are valid FlexScript commands.

Based on the naming of the 'commands', none of those functions can/should really be done in the entry trigger. Where an item is send is decided in the "Send to Port" field.

If you haven't done so yet, I'd suggest you read up on port-connections and writing logic in the documentation.

https://docs.flexsim.com/en/24.0/ConnectingFlows/Ports/KeyConceptsPorts/KeyConceptsPorts.html

https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/WritingLogic/WritingLogic.html

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

Hsu avatar image Hsu commented ·
Or I can change it to only one source, and then I want it to produce 300 red and then 300 blue. What should I do?
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Hsu commented ·

You can add labels to the source table and color the items according to them in the "On Creation" trigger.

capture1.png

capture2.png

0 Likes 0 ·
capture1.png (5.5 KiB)
capture2.png (13.2 KiB)

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.