What the differences between receiveitem() and openip()

What the differences between receiveitem() and openip()

yue_y
Not applicable
1 View
1 Reply
Message 1 of 2

What the differences between receiveitem() and openip()

yue_y
Not applicable

[ FlexSim 19.1.1 ]

Both functions can open the port and accept one flow item. How are they different from each other?

0 Likes
Accepted solutions (1)
2 Views
1 Reply
Reply (1)
Message 2 of 2

Jacob_Gillespie
Autodesk
Autodesk
Accepted solution

The answer to this question is the same as this other one you asked:

Behavior of receiveitem() vs open port

openip(object, 1);

This allows you to open a specific port on an object.

object.input.open();

This will open all ports on the object.

Also the receiveitem() documentation says:

This function should only be used from within a BasicFR's or BasicConveyor's code fields, as other objects implement receiveitem() on their own.