question

ariazhou avatar image
0 Likes"
ariazhou asked ariazhou edited

Why can't the combiner work when I use code

I use code created Q1 and Q2, and connect this two queue to combiner1. But when I create some boxes on Q1 and Q2, the boxes won't flow to the combiner, I checked the input port of combiner, it is correct.

Below I am attaching the ss and model, kindly can anyone guide me in fixing the issue. Thanks in advance !


1745205369726.png1745205381178.png

CombinerDoesn'tWork.fsm

FlexSim 25.0.0
combinerusing codeflexsim25object connection
· 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.

Pablo C4 avatar image Pablo C4 commented ·

"I thought it was enough to open the input ports of the combiner (openip(Model.find("Combiner1"), 1);), but I realized that the component table structure in the tree is missing in the combiner if you have not reset the model(open the tree of a combiner after making the connections, and only then when pressing reset the node From Input Port x and its subnodes Target and Current Quantity are created)."

0 Likes 0 ·
ariazhou avatar image ariazhou Pablo C4 commented ·

Thanks Pablo! The target function for my model is that I want to make sure each time when I press reset, the input queue can destroy and recreate (by different commands), and then re-connect, but I think I'm now in a deadlock, maybe execute the contextdragconnection command in the processflow is not a good method. Thanks!

0 Likes 0 ·

0 Answers