question

David Chan avatar image
0 Likes"
David Chan asked David Chan commented

Setup Event Trigger Source to listen to OnStateChange

How do I setup Event Trigger Source or Wait for Event to listen to OnStateChange or OnStateValueChange?

How should I fill in the Label Name or Value column? I think match should be used for Operation.

1628924596068.png

for Default State profile, should I fill in numeric "1" ?

To State (for e.g. Idle), should I fill in STATE_IDLE or "1"?

From State (e.g. Processing), should I fill in STATE_Processing or "2"?


Thanks


David

FlexSim 21.2.0
flexsim 21.2.0event-triggered sourceonstatechangeonstatevaluechange
1628924596068.png (12.4 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

·
Jeanette F avatar image
1 Like"
Jeanette F answered David Chan commented

Hello @David Chan,

From setting up a model and having the wait for event assign the labels instead of match, it gives me the following values. 1629123453370.png

The ToState is the "setup" state. I think this may not be working for you because after the processor receives a flowitem and is no longer idle it goes to setup before processing.

StateChangeValue_MatchToAndFromState.fsm

Was this helpful? Let me know if I can assist you further.


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

David Chan avatar image David Chan commented ·
@Jeanette F Thanks. At least I have your working example for testing out. It works for me now.


David

1 Like 1 ·

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.