Display Output of Function in Dashboard

kaka3
Not applicable
2 Views
13 Replies
Message 1 of 14

Display Output of Function in Dashboard

kaka3
Not applicable

[ FlexSim 22.0.16 ]

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


0 Likes
Accepted solutions (1)
3 Views
13 Replies
Replies (13)
Message 2 of 14

joerg_vogel
Not applicable

@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/OverviewAdva...

** 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
Message 3 of 14

kaka3
Not applicable
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
Message 4 of 14

patrickABAWF
Advocate
Advocate
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
Message 5 of 14

patrickABAWF
Advocate
Advocate
And why are you using FlexSim version 22 instead of 24?
0 Likes
Message 6 of 14

kaka3
Not applicable

I want to consider Pallet filled if contains at least one box. There is no particular reason i am using v22.

Thank you for contribution

0 Likes
Message 7 of 14

patrickABAWF
Advocate
Advocate
Accepted solution

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

Message 8 of 14

kaka3
Not applicable

Hi sir

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

Thanks

0 Likes
Message 9 of 14

patrickABAWF
Advocate
Advocate
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
Message 10 of 14

jeanette_fullmer88DK3
Autodesk
Autodesk

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
Message 11 of 14

patrickABAWF
Advocate
Advocate
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
Message 12 of 14

patrickABAWF
Advocate
Advocate

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
Message 13 of 14

kaka3
Not applicable
Hi

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

0 Likes
Message 14 of 14

jeanette_fullmer88DK3
Autodesk
Autodesk
Hello @kaka,

You should start a new post for your question rather than editing your post to add an additional question.

0 Likes