question

mohammadmajd avatar image
0 Likes"
mohammadmajd asked Jason Lightfoot edited

Operator Vs Transporter

operator vs transporter.fsmI have combiners and a transporter and an operator. Is there a way to specify only transporter does the transporting to and from combiners and the operator only does the setup and processing? I know I could use process flow but this is a part of a bigger model and i have to make a lot of changes to the original model to add process flows.

FlexSim 23.0.7
operatortransporters
5 |100000

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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot edited

Sure, you can do it by specifying current.centerObjects[2] for the combiner transports, but in larger models where you might need many references to other object the port connection rank can be a pain due to the ranks changing when you disconnect and reconnect objects on the centerport.

For this reason I prefer to set up two pointer labels on the combiners one for the operator and one for the transport and refer to each using:

current.operator

and

current.transport

Not only is this more stable by avoiding ranks, it's also easier to read and check:

1707525445401.png

So I think it's a good habit to try and adopt.


1707525445401.png (10.1 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.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

Wherever you can select a taskexecuter doing something, you must set a reference to this taskexecuter. Typically it is a first centerport object or current.centerObjects[1] . One is a rank number of existing connections to objects. You can have more centerport connections to different taskexecuters. First is connected to a transport. Second is connected to an operator. It is up to you how you reference taskexecuters doing their jobs.

Hint: If you get an error message, like there is an array out of bounds, then you set a number of a rank that is not connected to an object.

5 |100000

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