question

Axel Kohonen avatar image
1 Like"
Axel Kohonen asked Axel Kohonen commented

Bug with delayeventsofobject?

Hi,

I tried to delay the events of a processor, but it seems that the message parameters of a message that is delayed get lost. See the attached model where the problem is found. Msgparam1 and msgparam2 seem to point to somewhere in memory space, but not where they should.

testmessagebehaviouratstop-delayeventsofobject.fsm

When using delayevents the same model works as it should.

Could this be a bug?

Thank you!

Kind regards,

Axel

FlexSim 17.2.5
bug reportdelayeventsofobject
· 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.

Axel Kohonen avatar image Axel Kohonen commented ·

HI @phil.bobo

Any clue why this happens or if it has been fixed in some version?

Thank you!

Kind regards,

Axel

0 Likes 0 ·

1 Answer

·
Phil BoBo avatar image
3 Likes"
Phil BoBo answered Axel Kohonen commented

Sorry for the delay in answering this. Somehow this question got lost.

Yes, this is a bug in delayeventsofobject(). That command is re-creating the event at a new time and deleting the old event. This is not working correctly with delayed message events.

I'll add a case to the dev list.

In the meantime, you should avoid using that command. For example, in your model with a station, send the messages to a processor instead of the station, and then when the station goes down, stop the processor, and when the station goes back up, resume the processor. That way, you can avoid using delayeventsofobject().

· 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.

Jacob Gillespie avatar image Jacob Gillespie ♦ commented ·

This has been fixed. The fix will be in the FlexSim 18.0.9 and FlexSim 18.2.3 updates.

1 Like 1 ·
Axel Kohonen avatar image Axel Kohonen Jacob Gillespie ♦ commented ·

Hi @Jacob Gillespie

Great! Thank you for getting it fixed.

Does this mean that stopping a station also delays the events of the objects as with e.g. processors or do I still need to use delayeventsofobjects to delay the events of the station?

Thank you!

Kind regards,

Axel

0 Likes 0 ·
Axel Kohonen avatar image Axel Kohonen commented ·

Thank you @phil.bobo

0 Likes 0 ·

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.