question

Yogesh H avatar image
1 Like"
Yogesh H asked Yogesh H commented

How to get FlowObject State on the Text?

GetFlowObject_State.fsm

Hi Support Team,

I am not able to get the FlowObject state on the text. Please, suggest me some alternative ways to get the FlowObject state. I have attached the sample model for your reference.

Thanks for your time and support.

FlexSim 21.2.2
statisticsstateflowobject properties
· 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.

Yogesh H avatar image Yogesh H commented ·
0 Likes 0 ·
Ryan Clark avatar image Ryan Clark commented ·

Hi @Yogesh H, was Patrick Zweekhorst's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Patrick Zweekhorst avatar image
2 Likes"
Patrick Zweekhorst answered Yogesh H commented

Hi @Yogesh H ,

The first problem is that the FlowState is not on the default state profile. You should use state profile 1 for this. FloWorks uses its own state profile to log the states.
I would have assumed this is the only thing you would need to change, but it still does not work.

If you don't use the FlowTank class, but just the default Object class everything will work fine. I will check why it does not work with the FlowTank class, but for now your code should be something like the code in this picture below:
1632471962017.png

Hope this helps you,

Patrick


1632471962017.png (13.4 KiB)
· 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.

Yogesh H avatar image Yogesh H commented ·
Thanks @Patrick Zweekhorst. It is very much helpful.
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.