question

Hemanth Sai Kumar avatar image
0 Likes"
Hemanth Sai Kumar asked Felix Möhlmann answered

Custom Processor State in stats

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

FlexSim 24.0.2
processorutilizationstats
1721033561301.png (126.9 KiB)
· 2
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

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.

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