The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 DDE with other programs than Excel

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Peter.Hors1 Posted - 08/08/2002 : 09:38:37 AM
I am using a software (called EES) for calculating thermophysical propertiees. I can control this software form excel with DDE in visual basic like this:

Application.DDEExecute ChannelNumber, "[SOLVETABLE 'TABLE 1', Rows=1..10]"

(starting a calculation in a given table ...)

My question:
Is it possible to send such DDE command with lab talk ?
I tried the command "dde" but it does not work.

Thank You for helping

Peter Horstmann
Germany
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 08/13/2002 : 2:37:49 PM
Since I find no problem with the "dde" command, I assume the problem is in your use of the command or the EES application. You should probably contact your Tech Support with the details.
Here is a script I used to test "dde":

for(ready=0,attempts=0;ready==0&&attempts<10;attempts++) {
dde -c Excel|System idSys;
sec -p 1;
if(idSys>=0) ready=1;
}
if(attempts>=10) {
type -a Request timed out. Terminating...;
break1;
} else {
type -a Connected, retrieving info.;
}
dde -r idSys Topics;
dde -d idSys;
ii=1;
getn (Select a Topic:) ii:Z (Excel System Topics);
dde -c Excel|%[%Z,#ii] idXL;
doc -s;
doc -n;
set %H -e 40;
wo -s 0 0 0 0;
wo -p 201 scatter;
x2=50;y2=2;
currentrow=1;
blocksize=10;
reps=4;
delay=1;
getn (Block Size (Rows):) blocksize (Number of Blocks:) reps (Time delay (seconds):) delay (Excel DDE);
repeat reps {
dde -rc idXL R$(currentrow)C1:R$(currentrow+blocksize-1)C2 Data1!R$(currentrow)C1:R$(currentrow+blocksize-1)C2;
currentrow+=blocksize;
sec -p delay;
};
dde -d idXL;



Edited by - greg on 08/13/2002 2:41:02 PM

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000