question

Hoang Nk avatar image
0 Likes"
Hoang Nk asked Hoang Nk commented

Transfer data between 2 resources

Hi, can someone help me on this matter?

I'm having a situation, in which I have 2 different object process flows (like in the figure), attached to 2 separate objects. The first object (socket server) will receive a string-type message, process it and then send the processed message to the second object (message parser).

I would like to ask for the best way to handle the transfer of the message between the objects. I have tried to use the label method, but it seems to be not efficient, especially when I may have around 10+ messages received in the socket server at a time.

Many thanks in advance,

Hoang Nguyen

1658746936308.png

FlexSim 22.1.2
data transfer
1658746936308.png (13.3 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

Lars Jacobsen avatar image
0 Likes"
Lars Jacobsen answered Hoang Nk commented

An option is to use "senddelayedmessage". I have attached an example using object process flow.

sendmsg.png


SendMsg.fsm


sendmsg.png (27.2 KiB)
sendmsg.fsm (32.1 KiB)
sendmsg.fsm (32.2 KiB)
· 1
5 |100000

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

Hoang Nk avatar image Hoang Nk commented ·

Thank you Lars, it solves my problems :)

0 Likes 0 ·