Hi all,
I am a student and needed assistance urgently for my project
I'm using FlexSim 2024 integrated with FlexSimPy to extract data after simulation. I’ve set up a Statistics Collector
(ProductOutputCount
) linked to the Sink (on entry), with Row Value = 1
and a Performance Measure (TotalProducts
) referencing it. In the FlexSim GUI, "TotalProducts" correctly shows values like 841 after a simulation run, but when I call
total = controller.getPerformanceMeasure("TotalProducts")
from Python, it always returns 1.0.
I’ve verified that:
The simulation runs and ends correctly.
The global variable/stat mechanism in FlexSim updates as expected.
I've called
updateallperfmvalues()
from Python prior to reading the performance measure.All node paths are correct.
Has anyone encountered this issue or can suggest a workaround to force the performance measure to aggregate correctly via FlexSimPy?