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
|
|||
|
|||
How to let the DDE correct?
Dear Community Members,
In my model , the Dynamic Data Exchange was used to communicate with Excel, I had built this model in 5.1.2 and the codes was in ‘User Events’ in ‘tools’ menu and the communication was correct, but I want the communication only created one time when the model begin. But now it was triggered again and again. Who can tell me why? How can I let it correct? Thanks. |
#2
|
|||
|
|||
My description was maybe not clearly. I want to read the processtime from Excel and store the data in global table ‘processtime’, this operation only need one time. Then I wrote the DDE codes in User Events. But when the model running, the DDE ran again and again when the item exit the source, enter the queue, exit the queue……, even I didn’t select ‘Execute event on reset only’ in User Events. I can’t understand this and find out the solution. Who can tell me? Thanks.
|
#3
|
|||
|
|||
The problem disappears if you remove the user event completely and then define the import in the Excel Auto (button) as part of a multi-table import. After that just call the function excelmultitableimport(), which you can do on reset or, if the data isn't going to change, when the model loads (see Model Triggers).
|
The Following User Says Thank You to Jason Lightfoot For This Useful Post: | ||
Robert Liu (08-04-2011) |
#4
|
|||
|
|||
Jason, thanks a lot! I will try your suggestion. But the logics in Flexsim are inexplicable sometimes. In my model, the idea using User Events may be a wrong selection? I don’t know.
|
Thread | Thread Starter | Forum | Replies | Last Post |
Is Queue's AvgContent correct? | qin tian | Gripes and Goodies | 3 | 03-02-2008 09:49 PM |