global variable statistics

global variable statistics

Postby prenna » Sat Jan 14, 2017 8:17 am

If I introduce a global data by information store and add this to the KPI, I can view only the last value of the simulation run. How the average (for example as the average number in queue) during the simulation can be introduced in the KPI summary. I Can save every change of the global variable and the time of change in a spreedsheet and compute the value over a simulation; but this is more complex for several global variables to introduce

Re: global variable statistics

Postby jholtman » Sun Feb 19, 2017 11:19 pm

There are probably several ways of doing it. If there are certain places in your VL code that the global value is being changed, you can create a subroutine that you can past the value (and name) of the object and this can be recorded in a spreadsheet with the current time.

You could also create a subroutine that is called at a certain interval and will record the current values of the global items that you are interested in along with the time.
Jim Holtman
Data Munger Guru
jholtman (at) gmail (dot) com
What is the problem you are trying to solve?
Tell me what you want to do, not how you want to do it.

global variable statistics

Postby Kevinduki » Mon Oct 02, 2017 7:20 am

I need a global variable accessible by all functions. Just the one

Where in my add on should I place

my variable = 15

?


Return to “SIMUL8 Cafe”