Cumulative meter value in Python:Plugin

How can we get the cumulative value of a Output:meter in Python:Plugin?

. which API function? . which calling point?

S.Wang's avatar
131
S.Wang
asked 2022-01-28 06:14:01 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2022-01-28 09:43:25 -0500
edit flag offensive 0 remove flag close merge delete

Comments

I recall some brief discussion about this here.

shorowit's avatar shorowit (2022-01-28 08:22:18 -0500) edit

@S.Wang would using the Output:Meter:Cumulative object work? This will contain the running total of an Output:Meter starting from the beginning of the simulation. Either that or use Python code to accumulate Output:Meter values as you desire.

Aaron Boranian's avatar Aaron Boranian (2022-01-28 09:44:51 -0500) edit

Thank you for replying!

I would like to get the cumulative value in my python plugin programs, but the Output:Meter:Cumulative is not accessible. (no such API.)

I also tried to get _meter_value on a calling point 'after Zone reporting', and accumulated it to generate an output variable. But this output result is not equal to the one from Output:Meter:Cumulative.

S.Wang's avatar S.Wang (2022-01-28 10:10:17 -0500) edit
add a comment see more comments