Custom Processor State in stats

Custom Processor State in stats

ddtsk
Contributor Contributor
43 Views
4 Replies
Message 1 of 5

Custom Processor State in stats

ddtsk
Contributor
Contributor

[ FlexSim 24.0.2 ]

Hi Flex simmers,
I have a case where I need to add a custom state to a processor i.e "Unprocessed" and I want to update that state when part flows.
Can anyone resolve this,Thanks in advance and for your time.

1721033561301.png

0 Likes
Accepted solutions (1)
44 Views
4 Replies
Replies (4)
Message 2 of 5

kavika_faleumu
Autodesk
Autodesk

@Hemanth Sai Kumar, what do you mean "when part flows"? Do you mean when the part is flowing across the processor (e.g. Processing)? If so, you could try editing the State Table (or making your own) that changes the "Processing" state to "Unprocessed".

0 Likes
Message 3 of 5

ddtsk
Contributor
Contributor

Hi Kavika F,
Yes, I tried adding a new state in the state table, and when I want to change the processor's state to custom state, I couldn't able to do that I am getting an error, but I could able to change it to default states. I want to change it to some custom state like "Unprepared" or "Unprocessed".

0 Likes
Message 4 of 5

moehlmann_fe
Observer
Observer
Accepted solution

Did my answer to your comment here help to clear up the question? Here is some additional information:

Adding a state to a state table does not change the object's state profile in any way. However it doesn't need to, because if you set it to a state that was not part of its profile yet, it will be added. The internal state name will just be the state number, but since the display name is taken from the state table, this does not matter for the state chart.

Setting the state through "setState()" requires you to specify the state number. You can enter this number directly or use a macro as shown in the linked post.

0 Likes
Message 5 of 5

ddtsk
Contributor
Contributor

Hi Felix,

Thanks for brief explanation and now it got resolved by using Global macros.

0 Likes