statistics collector to get content of queue

statistics collector to get content of queue

sakamoto_ryosuke
Collaborator Collaborator
12 Views
5 Replies
Message 1 of 6

statistics collector to get content of queue

sakamoto_ryosuke
Collaborator
Collaborator

[ FlexSim 20.1.3 ]

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?

37635-capture074.jpg

37653-capture075.jpg

StatisticsCollectorTest.fsm

0 Likes
Accepted solutions (1)
13 Views
5 Replies
Replies (5)
Message 2 of 6

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

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

37662-1615537571231.png

You have used data.Content

37663-1615537604189.png

which means you get this:

37643-1615537625480.png

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

37664-1615537706000.png

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:

37654-1615538049480.png

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.

37665-1615537896392.png

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

Message 3 of 6

jason_lightfootVL7B4
Autodesk
Autodesk
0 Likes
Message 4 of 6

sakamoto_ryosuke
Collaborator
Collaborator

@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
Message 5 of 6

jason_lightfootVL7B4
Autodesk
Autodesk

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:

37644-1615540064783.png

Then you can use it in the event column values:

37655-1615540102699.png

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

37645-1615540153003.png

Good eh?

statisticscollectortest_jl2.fsm

0 Likes
Message 6 of 6

sakamoto_ryosuke
Collaborator
Collaborator

@jason.lightfoot Wow! Thank you. This is great!

0 Likes