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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 DDE with other programs than Excel
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Peter.Hors1

Germany
11 Posts

Posted - 08/08/2002 :  09:38:37 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

greg

USA
1379 Posts

Posted - 08/13/2002 :  2:37:49 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000