question

Arun Kr avatar image
0 Likes"
Arun Kr asked Arun Kr edited

Fluid Processor

Hi,

I am trying to change the state of the fluid processor to changeover by sending a delayed message after emptying it. But the state is not changing, to changeover instead it is remaining as empty. How can I overcome this ?

Regards,

Arun KR

state-fluidprocessor.fsm

FlexSim 16.2.0
fluid object
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

·
Axel Kohonen avatar image
1 Like"
Axel Kohonen answered Arun Kr edited

Hi @Arun KR

The problem is not that the state does not change to changeover since it does, but the FluidProcessor updates the state back to empty automatically after the Fluidprocessor has entered the changeover state. You can see this is you step forward after stopping at a breakpoint in the onMessage trigger. This probably has to do with the internal workings of the FlexSim engine so I guess only someone from FlexSim can answer that.

If you want the stats to be correct then maybe you can mark the start of the change over state into a label and when the state should end you write the value into the stats node directly. In this case you would need to reduce the empty state with the same value as well.

Another option is to create custom state nodes that you only update yourself. But this obviously requires more work.

Axel

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

Arun Kr avatar image Arun Kr commented ·

Hi Axel,

Thanks for the reply. I have noticed the automatic update to state empty after the changeover state for the processor. The notable thing here is I am sending the delayed message after the processor has become empty. So conceptually the message event is acting after the processor is changed to the empty state. Accordingly, the processor object should remain in the state as change over. May be, I am understanding it wrongly.

As you said someone from FlexSim can answer this more clearly.

@ phil.bobo,@Matt Long

Regards,

Arun KR

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.