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-11-2010
zhang xin zhang xin is offline
Flexsim User
 
Join Date: Dec 2008
Location: China
Posts: 136
Downloads: 147
Uploads: 0
Thanks: 81
Thanked 6 Times in 6 Posts
Rep Power: 150
zhang xin is on a distinguished road
Default is it possible to implement a command like waituntil?

Hi, is it possible to implement a command like waituntil(condition, priority)?

when program excutes to this command, it will suspend until condition is true. when there are many waituntil, priority will tell which one should be test first.

this is a command in another simulation package, and I want implement it in flexsim.

thanks
  #2  
Old 01-11-2010
Nico Zahn's Avatar
Nico Zahn Nico Zahn is offline
Flexsim User
 
Join Date: Sep 2007
Location: Bingen am Rhein, Germany
Posts: 179
Downloads: 19
Uploads: 4
Thanks: 66
Thanked 60 Times in 32 Posts
Rep Power: 201
Nico Zahn has a spectacular aura aboutNico Zahn has a spectacular aura about
Default

Hello zhang,
it would be best to have an active message when the condition gets true instead of checking the condition in a certain intervall.
__________________
kind regards Nico.
  #3  
Old 01-11-2010
Tom David's Avatar
Tom David Tom David is offline
Flexsim User
 
Join Date: Aug 2007
Location: Schwaebisch Gmuend, Germany
Posts: 430
Downloads: 157
Uploads: 47
Thanks: 486
Thanked 450 Times in 233 Posts
Rep Power: 520
Tom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant future
Default

Nico is absolutely right with his post.

I like to refer to another post I did on 11-06-2009, 10:34 AM:
http://www.flexsim.com/community/for...read.php?t=760

So if no event occurs at the condition time, your condition will not be checked.
If a simulator always checks at every event for conditions, I am pretty sure the simulation run will be slow.
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions."


Thread Thread Starter Forum Replies Last Post
findInCode User Command Jason Lightfoot User Development 19 05-21-2012 02:16 PM
Problems with the command dbsqlquery Matthias Hofmann Q&A 4 11-21-2008 01:02 PM
Command getnextnetnodeoutport Martijn van Oostenbrugge Q&A 0 02-22-2008 05:42 AM
releaseitem command AlanZhang Q&A 3 10-04-2007 10:11 AM


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.