ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
Update MTBF before the failure occurs
Hi
Is it possible to update the MTBF of a "MTBF MTTR" object dinamically? Let me be more specific: I set the MTBF with a random time t. However, I may need to update that value and cause the failure to happen sooner, if a condition in a periodic user event is true. I can update the MTBF variable in the "MTBF MTTR" object using setvarstr() and then buildnodeflexscript(), but it still won't work because the object only seems to update the MTBF after the OnRepair trigger. Any ideas? Thanks in advance |
#3
|
||||
|
||||
Hello Josè,
the function to let an object go down or to let it resume are standard. You can use them with every event you like or create for example by a message. Please take a look into the triggers of mtbf/mttr source code editor and the command reference. Jörg |
#4
|
||||
|
||||
Hi,
if you still insists to change already created events like stop an object or resume an object. You can take a look into the commands to change events. BUT that is not recommended. Better you build a control object which handles possible events by incoming messages and executes only stopobject and resumeobject functions, when they should happens at the right moment instantly. Jörg |
The Following User Says Thank You to Jörg Vogel For This Useful Post: | ||
José Soares (01-19-2016) |
#5
|
|||
|
|||
Thank you so much Jorg.
I'll follow your last tip. Instead of using "MTBF MTTR" objects, I'll try to create a periodic user event where it checks if a given condition is true. If it is, it sends a message to the machine (to break it down) and a delayed message (to resume to the last state). I'll also use the OnMessage triggers of the machine to replace the OnDown and OnRepair triggers of the "MTBF MTTR". |
The Following User Says Thank You to José Soares For This Useful Post: | ||
Jörg Vogel (01-20-2016) |
Thread | Thread Starter | Forum | Replies | Last Post |
Failure to compile or open Visual Studio | Martin Jensen | Q&A | 5 | 07-03-2015 07:12 AM |
Failure to upload *.dwg file | UrbanAviator | Q&A | 2 | 07-19-2013 02:49 AM |
GUI Combo Box Update | Chris Moon | Q&A | 3 | 04-14-2011 03:55 PM |
Sketchup driver failure | David Chan | Installation | 7 | 02-07-2011 09:27 AM |
Update Flexsim.com | Lolke Koopmans | Marketing and Sales Information | 12 | 10-17-2008 02:09 PM |