PDA

View Full Version : ¿How can i export breakdown time?


Gutirallo
01-09-2012, 11:38 AM
Hi,

I need to export the downtime from some processors to a global table but do not know the correct code.

I need something like this...

settablenum("MyTable",1,1,GetbreakdownTime(current));

if anyone can help... I'd appreciate

Thanks.

Sebastian Hemmann
01-10-2012, 01:32 AM
Because I think you need this value at the end of your Simulation Run maybe you should check out the functions of Experimenter.

If this doesn´t help you can find this value in tree under ">stats/state/state_profile/breakdown" of your Taskexecuter.

Jörg Vogel
01-10-2012, 02:38 AM
Hi,

if you manage the breakdown with the tool MTBF MTTR, you can write your code to the MTTR-function. The current time, the downtime begins, is the moment that the function MTTR is executed. time() is the command to the current simulation time, as you probably know. The return value is the duration of the down time. If you use a variable to preprocess the return value, you can store the value, the current time and other information to a table. If you are not so experienced to write such a code to store, you can copy the picklist code "Add Row and Data to GlobalTable" from any OnExit, OnEntry-trigger.

Jörg

Gutirallo
01-10-2012, 05:19 AM
If this doesn´t help you can find this value in tree under ">stats/state/state_profile/breakdown" of your Taskexecuter.

...Ok Sebastian, but how can i get directly from there with a code? can be?

if you manage...

Thanks Jörg, It's an option, but i have many types of "downtimes" and I think that it would be much easier if i can get the value directly from the tree under or something like that... and if not, then i'll take your way.

Sebastian Hemmann
01-10-2012, 07:13 AM
This is the example for Operator 6:

getnodenum(node("/Operator6>stats/state/state_profile/breakdown",model()));

Gutirallo
01-10-2012, 07:35 AM
thanks a lot, now i can use this in many other things.