question

Diederik Bd avatar image
0 Likes"
Diederik Bd asked Diederik Bd commented

How to show a current value of a Tracked variable in a Dashboard?

Hi all,

Is it possible to show the current value of tracked variable as a single text label in a dashboard?

(So, not as a graph or an Histogram).

We tried to show this current value using a dynamic text. However this did not work.

Thanks in advance!

Kind regards,

Diederik

FlexSim 21.2.3
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

·
Patrick Zweekhorst avatar image
1 Like"
Patrick Zweekhorst answered Diederik Bd commented

Hi @Diederik Bd ,

When we look at the dashboard and use the Dynamic text it all seems to work fine.
We linked the dynamic text to the TrackedVariable by using the sampler:
1635243946774.png

When running the model we can see the current value of the TrackedVariable:
1635243987774.png

Is this also what you see?

If not, are you able to post an (example) model where we can see what goes wrong?
Thanks,

Patrick


1635243946774.png (8.0 KiB)
1635243987774.png (5.8 KiB)
· 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.

Diederik Bd avatar image Diederik Bd commented ·

Hi @Patrick Zweekhorst ,

Thanks for your answer!

I have the same visual, but I am interested whether it is possible to show (only) the current value. In your example, I want to show only the current value: 2.

Thanks in advance!

Kind regards,

Diederik

0 Likes 0 ·
Patrick Zweekhorst avatar image Patrick Zweekhorst Diederik Bd commented ·

Hi @Diederik Bd ,

That is also possible, but just requires a few extra steps.

First add a model documentation to your dashboard.

Remove all the text that is in the model documentation.

Insert Dynamic Flexscript:


1635319808316.png


Add a line of code to print the tracked variable (like in the screenshot above).
I have also done these steps in the attached file.


Patrick

ModelDoc.fsm

0 Likes 0 ·
1635319808316.png (12.0 KiB)
modeldoc.fsm (30.9 KiB)
Diederik Bd avatar image Diederik Bd Patrick Zweekhorst commented ·
Hi @Patrick Zweekhorst ,


This was what I was looking for!

Thank you!

Kind regards,

Diederik

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.