question

Yue Y avatar image
0 Likes"
Yue Y asked Jacob Gillespie answered

What the differences between receiveitem() and openip()

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

FlexSim 19.1.1
receiveitem
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

·
Jacob Gillespie avatar image
1 Like"
Jacob Gillespie answered Jacob Gillespie edited

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.

5 |100000

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

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.