question

Zhun Z avatar image
0 Likes"
Zhun Z asked Zhun Z commented

what is the purpose of tracked varialbe?

Hi, I am confused about the tracked varialbe, could someone tell me how to use the tracked varialbe, and how to bulid the connection between model and tracked varialbe. Thanks!

FlexSim 22.2.0
tracked variables
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 Zhun Z commented

@Zhun Z I would start with reading the manual: Tracked Variables (flexsim.com) and here FlexScript Class - TrackedVariable (flexsim.com) and if you have a question after when trying to use a tracked variable please come back.


· 3
5 |100000

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

Zhun Z avatar image Zhun Z commented ·

Thanks for your reply. The mannual defines clearly about the Tracked variables, but I still want to learn about some typical cases about it , because i don't clearly understand how or when should use Tracked variables.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Zhun Z commented ·
I think the uses in default functions of FlexSim are good examples:

- You use TRs when you want to store information about the value's history, for example for how long it stayed at certain values (object states)

- TRs automatically calculated averages (content, staytime)

- They allow you to listen for changes to the value. So for example a Wait for Event activity in Process Flow can react to a TR's value reaching a threshold.

0 Likes 0 ·
Zhun Z avatar image Zhun Z Felix Möhlmann commented ·
Thanks!
0 Likes 0 ·