question

Ryosuke S avatar image
0 Likes"
Ryosuke S asked Ryosuke S commented

statistics collector to get content of queue

I'm studying statistics collector and trying to get simply the number of flowitems in the the queue. I'm also referencing the statistics collector which FlexSim automatically creates, and mine looks the same, but the content remains blank. What am I doing wrong?

StatisticsCollectorTest.fsm

FlexSim 20.1.3
queueflexsim 20.1.3statistics collector
capture074.jpg (82.7 KiB)
capture075.jpg (212.0 KiB)
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
1 Like"
Jason Lightfoot answered Ryosuke S commented

These are the names you can use to access data values:

You have used data.Content

which means you get this:

But then you also haven't specified what field should get updated with the event

And you don't have an event at reset to write in the zero value. If you add that then you'll probably want to add an additional label 'newValue' for that too:

And I don't know if you want a single value but it looks like you want a time plot in which case you need to specify how/when rows are added.

It's a lot to take in just for a data plot isn't it.


· 4
5 |100000

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

Ryosuke S avatar image Ryosuke S Jason Lightfoot ♦ commented ·

@jason.lightfoot Thank you for the sample! Yeah, there are many settings to go to meet the objective... What makes it complicated is that it's so different from the one FlexSim creates automatically. I'm quite surprised.

Can I ask you one more thing? If I were to get the percentage of the content from the maximum content, do I need to use Calculated table? Or can I just modify Content column Event Value?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Ryosuke S commented ·

I'm sure there are multiple ways of setting this up.

Yes you just need reference to the maxcontent variable which I set up as an additional data label:

Then you can use it in the event column values:

But then that means you also need to add it to the reset value:

Good eh?

statisticscollectortest_jl2.fsm

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.