question

Cat avatar image
0 Likes"
Cat asked Joerg Vogel answered

Why processor can't get correct message?

Hi,

I want to send message from processor_1 to processor_3 and processor_3 get message to crate a label.

This is processor_1 code.

1677743334551.png

This is processor_3 code.

I try to modify code, but processor_3 always get message value is 1.

(As picture, the correct message value must be 4.)

I don't know where is wrong. Can you help me?

Thanks.


1677743473149.png


FlexSim 7.5.4
labelsprocessorsendmessage
1677743334551.png (100.0 KiB)
1677743473149.png (110.5 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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

A message gets received by an On Message trigger! Ever! You cannot expect by copying some source code lines of an OnMessage trigger that those leads to the right results in a different trigger function. The parsed parameter values aren’t available in all functions at all times. Please evaluate a received message in an On Message trigger. Store evaluated values in labels. Evaluate those label values in On Entry trigger of pm_3.

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.