question

shanice.c avatar image
0 Likes"
shanice.c asked Steven Hamoen answered

How to show AGV status in words dynamically

In my model, AGV is executing particle monitoring in fab, so I need to display the numerical value whenever completing measuring. Also, I'd like to show AGV status(traveling, measuring,...) in words. Currently I give AGV a label called "status"(this is a number label). And in the position above my model, I use Visual > Text to show AGV state, however, I hope to show status in words directly so that it's more intuitive to understand. I reassign label value(0~4) in process flow whenever AGV take different actions. How could I reassign status in words, also how could I display them dynamically.

AGV status display.fsm

FlexSim 21.1.4
flexsim 21.1.4textvisual displayagv state
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

Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered

@Fiona C In the command help you can find the functions getstatestr, getstatenum, setstate and setstate_s. these are all deprecated and one should use the object.stats.state().value or valueString but they give some extra info. For instance the valueString is not mentioned in the API reference.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.