question

Rafael B22 avatar image
0 Likes"
Rafael B22 asked Rafael B22 commented

How to access one of the performance measures?

I would like to acess one of the performance measures through a code that is run on an entry trigger. I know that I can get the node with:

  1. treenode node = getvarnode(Model.find("Tools/PerformanceMeasureTables/PerformanceMeasures"), "performanceMeasures");

But I do not know what to do next.

Any help is very much appreciated.


FlexSim 22.2.2
codeperformance measuresentry trigger
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Arun Kr avatar image
0 Likes"
Arun Kr answered Rafael B22 commented

To access performance measures use the Flexscript API. See the doc also.

Model.performanceMeasures.Parameter1 
Model.performanceMeasures["Parameter1"].value

Regards,

Arun KR

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Rafael B22 avatar image Rafael B22 commented ·
Hi Arun,

Thanks a lot! It worked nicely!

Best regards,

Rafael

0 Likes 0 ·