question

kaka avatar image
0 Likes"
kaka asked Patrick Cloutier commented

Display Output of Function in Dashboard

Hello,

I want to pin the label of the conveyor to a dashboard. I don't know why it does not get updated on the dashboard even I did as @Patrick Cloutier suggested.

In your modele the enveyor get assigned the label before the start of the simulation but me it needs to start!! whats the difference?


Thank you


model.fsm


FlexSim 22.0.16
conveyorscriptfunctionsdashobord
model.fsm (46.1 KiB)
· 5
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

@kaka, there is much change in your code. When you let execute a static return value, it will be a value of items on a conveyor + 0.001 divided by number of items on this conveyor. And this will be a little bit more than 1.

A return statement finishes finally a code execution.
If you want to customize a dashboard you will find in manual how you can create an own statistical collector or you can also find a section of calculated tables to manipulate recorded data.

https://docs.flexsim.com/en/22.0/GettingData/AdvancedDataGathering/OverviewAdvancedData/OverviewAdvancedData.html

** edit **
maybe you can record data you want to show by a tracked variable. https://docs.flexsim.com/en/22.0/Reference/Tools/TrackedVariables/TrackedVariables.html
** edit end **

Perhaps I didn’t understand what your aim is and you are able to describe what you want to show in a dashboard line chart.

0 Likes 0 ·
kaka avatar image kaka Joerg Vogel commented ·
Thank you for your reply.

Goal is to calculate the percentage of filled plallets on the conveyor and display it as a metric in the dashboard.

0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier kaka commented ·
How do you determine what constitutes a "filled pallet" ?

Is it when it has a specific number of boxes on it? Or when it has at least one box on it? Or other?

0 Likes 0 ·
Show more comments

1 Answer

·
Patrick Cloutier avatar image
1 Like"
Patrick Cloutier answered Patrick Cloutier commented

Here is a model in which I did the following:

  1. Created a label on the conveyor called FilledPallets
  2. In the Trigger OnEntry of the conveyor I calculate de % of filled pallets and write it on the label
  3. In the Dashboard I added a General/Label/LineChart in which I select that conveyor label.

Et voilà.

PercentageFilledPallets.fsm


· 2
5 |100000

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

kaka avatar image kaka commented ·

Hi sir

I edited the question. Can you please see why it not working as yours?

Thanks

0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier kaka commented ·
In my model, the label on the conveyor is created in the Properties panel on the right. So it already exists when I reference it in the ProcessFlow.

In your model, since the model is not created before, the ProcessFlow creates it when it runs.

But the main problem is the time interval in the graph. Mine is Seconds. Yours is Hours.

You should really consider doing the tutorials in Help/User Manual.

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.