question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Jason Lightfoot commented

Getting error while setting state under MTBF MTTR function?

Hi Team,

I have made some changes in the regular logic. Here, ports of objects are closed instead using stop function. I am trying to set state of object in this case. I don't know if we can do it. I am getting error as below:

1689680637102.png

Can you help me in this?

Thank you!

FlexSim 23.1.0
mtbf mttrobjectstate
1689680637102.png (118.5 KiB)
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jason Lightfoot commented

You are trying to a set a state on the MTBF/MTTR. current generally refers to the object in whose attribute tree the code you are editing is situated (ownerobject(c) -> c is the code's node -> current is the 'owner' of that node).

The object that the down time is applied to is downobject.

· 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.