question

kaka avatar image
0 Likes"
kaka asked Jeanette F 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)
· 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.

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
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @kaka, was Patrick Cloutier's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Patrick Cloutier avatar image
1 Like"
Patrick Cloutier answered Jeanette F 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


· 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.

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 ·
Patrick Cloutier avatar image Patrick Cloutier Patrick Cloutier commented ·

If you do what I just said here, it will work:

1 - Create the label on the conveyor

2 - Reselect the label with the graph menu sampler

3 - Change the graph time interval to seconds instead of hours

0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier kaka commented ·
You should not change the original question completely because now the comments and answers do not correspond to the question so the whole thread doesn't make sense anymore.
0 Likes 0 ·
kaka avatar image kaka Patrick Cloutier commented ·
Hi

The edit i made didn't affect the core of the question

0 Likes 0 ·
Show more comments