Cancel
Showing results for 
Search instead for 
Did you mean: 

waituntil with DDE

Valued Contributor
Valued Contributor

Hi,

 

I have the problem that I want to call a method over dde and in this method there is a waituntil statemant. When i call this method i get an error because I cant use 'wait', 'waituntil' and 'stopuntil' in Formula. How can i do this ?

 

4 REPLIES

Re: waituntil with DDE

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you should use the COM interface, if you want to wait for something from Plant Simulation. You can send messages from Plant simulation with fireSimTalkMessage and wait in your Application for this message.

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: waituntil with DDE

Valued Contributor
Valued Contributor

i dont need a reply i just need to be able to use weituntil. I have eg. a method MMoveMu and in this Method there is a waituntil statemant and i want to call the method (so my application just goes on after calling). (In the method i wait for the next mu) If it is necessary to change to com i need to readjust a lot so somthig else would be nice Smiley Happy

Re: waituntil with DDE

Siemens Phenom Siemens Phenom
Siemens Phenom

You need to move the waituntil-statement to a second Method, and you need to call that Method via ref(MethodName).newCallChain in your DDE Method. This way the DDE Method can continue and return, while the second Method will be suspended.

_________________________________________________________________
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: waituntil with DDE

Valued Contributor
Valued Contributor

ok thx

I think that should help me