ATTENTION

This 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

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 01-18-2016
José Soares
Guest
 
Posts: n/a
Downloads: 0
Uploads: 0
Default 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
  #2  
Old 01-18-2016
José Soares
Guest
 
Posts: n/a
Downloads: 0
Uploads: 0
Default

Alternatively, if I could just "force" that "MTBF MTTR" object to go down at any given time before the original MTBF time, that would do the trick.

Is this possible, to force the object to go down?

Thanks in advance
  #3  
Old 01-19-2016
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

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  
Old 01-19-2016
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

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  
Old 01-19-2016
José Soares
Guest
 
Posts: n/a
Downloads: 0
Uploads: 0
Default

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


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.