question

Cong Ding avatar image
0 Likes"
Cong Ding asked Cong Ding commented

Modify Object Output Value Manually

Is there a way that we can modify an object's stat_output manually? It looks like this node is handled by FlexSim internally and user has no access to change it.

FlexSim 17.0.12
object stats
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

Jacob Gillespie avatar image
2 Likes"
Jacob Gillespie answered Cong Ding commented

EDIT: Added FlexScript for 17.0

You can change it using FlexScript.

In FlexSim 17.0:

Object obj = model().find("Queue1");
stats_output(obj).value = 10;

From FlexSim 17.1 and on:

Object obj = model().find("Queue1");
obj.stats.output.value = 10;
· 3
5 |100000

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

jing.c avatar image jing.c commented ·

Hi, @Jacob Gillespie

The .stats can not works in below version FlexSim2017update2

0 Likes 0 ·
Jacob Gillespie avatar image Jacob Gillespie ♦ jing.c commented ·
@jing.chen

Thanks I didn't notice 17.0 was specified.

0 Likes 0 ·
Cong Ding avatar image Cong Ding commented ·

Yes it works. Thanks!

0 Likes 0 ·