question

tr-simulation avatar image
0 Likes"
tr-simulation asked Jason Lightfoot commented

How to output a label's value in the experimenter?

Hello,

I have a label which increments it's value according to a distribution. I would like to use the experiment to see what the final value of the label is each time I run the simulation. How do I get this label value to show up in the experimenter?

FlexSim 22.2.2
healthcare
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

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

Add it to a performance measure table. Sample the reference object with the label and then choose label from the popup.

eg:

1675868791568.png


1675868791568.png (8.7 KiB)
· 6
5 |100000

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

tr-simulation avatar image tr-simulation commented ·

When I tried to do that is says "null". I want to read the final value of my "ScanToken" (see attached screenshot & model) with each run of the simulation.scanToken.PNG V4_20230207.fsm

0 Likes 0 ·
scantoken.png (36.2 KiB)
v4-20230207.fsm (15.0 MiB)
Jason Lightfoot avatar image Jason Lightfoot ♦ tr-simulation commented ·

The method I described was for static objects - tokens are create dynamically. You need a reference to your token somewhere which you set when you create it. That could be a global variable, and entry in a list or another label on a static object that points to your token. There are countless ways to do it.

0 Likes 0 ·
tr-simulation avatar image tr-simulation Jason Lightfoot ♦ commented ·

Can you show me an example? I am not exactly sure what you mean.

0 Likes 0 ·
Show more comments

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.