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
|
|||
|
|||
Node (OnReset Trigger)
Well isn't it strange that the function closenodeedge(..) doesn't work when written OnReset trigger of a node! when you run, it is as if this function has not been called!
|
#2
|
|||
|
|||
No that's not strange. The open state of the edges are intended to be reset to open just like the port status, so you need to ensure you close an edge after the resets (for example by using a zero-time delayed message or other scheduled event ).
|
The Following User Says Thank You to Jason Lightfoot For This Useful Post: | ||
shafizad (02-12-2011) |
#3
|
|||
|
|||
I am pretty much sure that closeoutput command written OnRestTrigger for a fixed resource would work! adding the fact that the equivalent command on a node would be closenodeedge, then I am not sure if we are on the same page here!
I think this is a bug rather than a default thought idea. |
#4
|
|||
|
|||
closeoutput closes all the ports - that's the same as closing all the node edges of a network node. I was talking about closing a single port. Yeah, maybe I was wrong in that it wasn't intended, but I can see how it's consistent.
That aside it might be better to have the ability to close the edge on reset like you suggest. |
Tags |
closenodeedge, node, onreset, trigger |
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with OnModelOpen trigger | juan alberto | Q&A | 3 | 09-20-2010 07:00 AM |
Is there a time dependent trigger? | Matthias Hofmann | Q&A | 3 | 08-25-2008 05:50 AM |
On Message Trigger | Anthony Timmiss | Q&A | 19 | 08-13-2008 08:20 AM |
return 1 in entry trigger? | qin tian | Q&A | 1 | 05-07-2008 04:05 PM |
Entry trigger | mallik | Q&A | 4 | 01-25-2008 07:18 AM |