Cancel
Showing results for 
Search instead for 
Did you mean: 

statistics worker chart

Pioneer
Pioneer

Hi all,

 

I have a question about the worker chart. Is it possible to write the statistics of a worker chart into table? I want to do this to check the occupancy of the workers in my model when I varify the number of workers via the experiment manager. Or is it even possible to write the statServicesWorkingPortion of the chart directly as output value in the experiment manager?

 

Many thanks in advance.

 

Kind regards,


Eelco

6 REPLIES

Re: statistics worker chart

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi Eelco,

 

you can use the method 'putValuesIntoTable' of the Chart to write the data in a table:

 

is
do
    local t:table;
	
    t.create;
WorkerChart.Chart.putValuesIntoTable(t); end;

 

Regards,

Ralf

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: statistics worker chart

Pioneer
Pioneer

Hi Ralf,

 

Thanks a lot, that is exactly I am looking forSmiley Happy

 

Eelco

Re: statistics worker chart

Builder
Builder

Dear @RalfTobel, @Steffen_B (I included you as well as I saw another thread where you provided a solution), 

 

I tried to implement your solution as well, but it does not work at all.

 

Please find attached my model. I have a WorkerChart (see picture) and the method "putValuesIntoTable" (see picture) and I call this method at the and of the simulation with the method "EndSim" (see picture). However, it does not write data in the table "WorkerChart_Table".

 

Could you please check what is going wrong?

 

Many thanks in advance!!

Re: statistics worker chart

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

the workerchart-object is a frame, the chart is inside this frame; so you need to adjust the path; try this:

 

WorkerChart.Chart.putValuesIntoTable(WorkerChart_Table)

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: statistics worker chart

Builder
Builder

Dear @Steffen_B,

 

Thanks!! I believe that it works now..

 

Another small question, actually I want to do the same for utilization graphs for stations and buffers. Can you provide some recommendations on how to do that based on a chart?

 

Many thanks in advance!!

Re: statistics worker chart

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

what do you mean with utilization graph?

 

you can call the method putValuesIntoTable  for each chart object

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net