Solved

Data exchange

Posted on 2003-12-03
8
307 Views
Last Modified: 2010-04-01
Dear all,

Does someone want to help me on how to communicate between executable program written in VisualC++ and another executable program written in Matlab communicate by using DDE (Dynamic data exchange) to exchange data to each other? As I know that Matlab.exe is able to act as DDE server or DDE client, but I have never done it before.  So, may someone please give me an example?

I'm also trying to establish a communication between Matlab and external software, written in Fortran and C languages. The data should be exchanged every a defined time, e.g. 200ms, to each other (data alter from the first program to the second and from the second require passing back to the first). But, I'm not quite sure if it's possible to use DDE. So, is it possible? and how?

Thanking you in advance for your reply,
Azzedine
0
Comment
Question by:azzedine
8 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 50 total points
ID: 9868431
0
 

Author Comment

by:azzedine
ID: 9869305
Sorry I forot to mention that I want to communicate Matlab.exe and C++.exe over UNIX environment. I'm not sure but I think it's not possible to use DDE (Dynamic data exchange) under UNIX. So, does someone want to help and tell me how I can communicate Matlab.exe and C++.exe under UNIX?

Thanking you again in advance for your reply,
Azzedine
0
 
LVL 86

Expert Comment

by:jkr
ID: 9869329
>> I think it's not possible to use DDE (Dynamic data exchange) under UNIX

That's correct. On UN*X, you will have to resort to calling applications from MATLAB as described on http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/ch03crea.shtml#calling_from_matlab ("Calling C and Fortran Programs from MATLAB")
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 3

Assisted Solution

by:RJSoft
RJSoft earned 50 total points
ID: 9874945
In Unix communication between exe's is easy using environment variables. Create a script that creates the environment variables and then start your exe's.

RJ
0
 

Author Comment

by:azzedine
ID: 9875967
Dear Everyone,

Thank you very much for your answers. It may help me if you would like to tell me more on how to create a script using communication between environment variables. Could you please give me an example?

As I have seen that the use of intermidiate file is slow. I want to use another communication option simple but faster than using file. Is that possible?

Thank you again for you reply,
Azzedine
0
 
LVL 86

Expert Comment

by:jkr
ID: 9876000
>>how to create a script using communication between environment variables

This is a one-way communication - you cannot return anything using env. variables.
0
 
LVL 5

Expert Comment

by:migoEX
ID: 10364827
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split between jkr and RJSoft.

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

migoEX
EE Cleanup Volunteer
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now