DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MaxCurves and MaxPoints

 
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions
View previous topic :: View next topic  
Author Message
Code-Breaker



Joined: 30 Apr 2004
Posts: 12
Location: Tempe, AZ

PostPosted: Tue Jul 06, 2004 5:07 pm    Post subject: MaxCurves and MaxPoints Reply with quote

Hi David,

I notice that the latest version has dde commands MaxCurves and MaxPoints - Thanks!

But how do I use them?

Here's how I get on with Matlab:

h = ddeinit('DPlot','System');
rc = ddeexec(h,'[SelectCurve(2)]');

...and I have tried, for example:

curves = ddeexec(h,'MaxCurves');

but this throws the DPlot error:

Error processing this command:
'MaxCurves'

What am I doing wrong? Thanks, Chris
Back to top
View user's profile Send private message Visit poster's website
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue Jul 06, 2004 5:48 pm    Post subject: Reply with quote

I've no idea how to do an XTYP_REQUEST transaction in Matlab. In VB this is a LinkRequest, using DPLOTLIB.DLL you'd use DPlot_Request. If the feature exists in Matlab it is likely called something like dderequest. (Gearhead talk: Your ddeexec function ends up being a XTYP_EXECUTE DDE transaction, which can only send information (like command strings) and receive a confirmation or error code - it can't retrieve application data.)

To make things slightly more complicated, DPlot responds to all XTYP_REQUEST transactions with a character string. So if/when you find Matlab's equivalent to XTYP_REQUEST you need to keep in mind that the returned value is a character string, not an integer.

Let me know if you run into any stumbling blocks on this.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Code-Breaker



Joined: 30 Apr 2004
Posts: 12
Location: Tempe, AZ

PostPosted: Tue Jul 06, 2004 6:06 pm    Post subject: Reply with quote

That was just enough info to get me going. I did a google search on "matlab XTYP_REQUEST" and found an example (from among ALL 3 matches returned) that used the command 'ddereq', and this does the job. Thanks, Chris
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group