question

Cetim C avatar image
0 Likes"
Cetim C asked Jason Lightfoot commented

Show pallet content

Hello,
I would want to know how I can show the content of a pallet in a dashboard. The pallet is in a combiner and if I show the content of the combiner always show 1.

FlexSim 22.1.0
content
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jason Lightfoot commented

To display the pallet content, you will need to create a statistics collector that stores this data. It can either be created from scratch or you can adjust the one that is created in the background when you add a chart to a dashboard.

Below, I explain the second option. If you want to learn more about how to use statistics collectors, I'd suggest you start with the respective section of the manual.

https://docs.flexsim.com/en/22.1/GettingData/AdvancedDataGathering/UsingStatsCollector/UsingStatsCollector.html

In the attached model I first pinned the combiner's content stat to a dashboard. To get access to the chart's statistics collector, "install" its components through the properties window. Afterwards, you will find a "Content Collector" in the toolbox.

1650625524237.png

Open its properties by double clicking on it. Navigate to the "Columns" tab. Here, we alter the value that gets written to the WIP column. Instead of the default option that reads the content of the combiner itself, open the code editor and paste in the following code instead.

1650625598703.png

combiner-pallet-content.fsm


· 1
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

You can also put the expression into a model documentation widget's Flexscript for a quick and dirty approach:

pt("Combiner Content: ");pd(Model.find("Combiner1").first.subnodes.length);


2 Likes 2 ·