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
|
|||
|
|||
closing specific port#
Hi,
There might be a simple answer to what I'm trying to do. I have a source that is distributing the same items to a queue and a processor. The queue gets the priority of the items up to a count of 2 then the items suppose to route through the processor. I tried using the closeoutput, but it closes both output of the source. Closeip doesn't work on discrete objects (wish it would). I tried to assign a port# and see if I can turn it off, no success. sample model is attached. Thanks |
#3
|
||||
|
||||
You can write your own code in the Send to Port under flow in the source object: if the content of the object of output-port 1 (queue) is greater than 1 send the flowitems to port 2 (processor).
Code:
if (content(outobject(current,1)) > 1) return 2; return 0 ; |
The Following 2 Users Say Thank You to Jörg Vogel For This Useful Post: | ||
George Serhan (01-07-2013) |
Thread | Thread Starter | Forum | Replies | Last Post |
Closing GUI Windows correctly | Stephan Seidel | Q&A | 3 | 02-09-2012 05:10 AM |
How to assign more than one physician to a specific bed? | Lionel Lim | FlexSim HC: Q&A | 2 | 02-10-2010 10:13 AM |
Problem in opening and closing ports | claudia gertheinrich | Q&A | 3 | 01-22-2010 02:34 AM |
Keeping run speed after closing the model | Lydia Franck | Gripes and Goodies | 4 | 05-06-2009 03:38 AM |
Close A Specific Port | Joe Allen | Q&A | 2 | 09-11-2008 06:30 PM |