Comment utilise - t - on DDE (ddeinit ; ddeexec ; ddeterm) ?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Je souhaitais établir une communication entre le logiciel EES et Matlab J'ai écris le code suivant
%%This file shows how EES and MATLAB can be coupled through file transfer
%%First start a DDE conversation between MATLAB and EES
chan = ddeinit('EES','dde');
% Now let EES load the EES file
rc = ddeexec(chan,'[Open EES_MATLab.ees]');
% Alternative rc = ddeexec(chan,'Play EES_MATLab.emf');
% Create a File in MATLAB such that it can be read by EES with the $Import directive
var1 = 10;
var2 = 20;
var3 = 30;
var4 = 40;
var5 = 50;
t = 0;
for i = 1:10
t = t + 1;
save MatLabInput.txt var1 var2 var3 var4 var5 t -ascii
% Ask EES solve the previously loaded program
rc = ddeexec(chan,'[Solve]');
% Read a file created by EES through the $EXPORT command into MATLAB
erg = csvread('EESOutput.csv');
end
% Terminate the DDE conversation between MATLAB and EES
ddeterm(chan);
Quand je l'éxécute dans la fenetre de commande , MATLAB me répond
>> EES_MATLAB
Mex file entry point is missing. Please check the (case-sensitive)
spelling of mexFunction (for C MEX-files), or the (case-insensitive)
spelling of MEXFUNCTION (for FORTRAN MEX-files).
Invalid MEX-file 'C:\Program Files\MATLAB\R2015b\toolbox\matlab\winfun\ddeexec.mexw64':
Error in EES_MATLAB (line 6) rc = ddeexec(chan,'[Open EES_MATLab.ees]');
Qu'est ce je dois faire ?
Merci d'avance !
0 Kommentare
Antworten (3)
Steven Lord
am 20 Mär. 2016
The DDE functionality is very old and not under active development as described in this Answer. Try using the COM support in MATLAB to interface MATLAB and the other application instead.
0 Kommentare
Rossy Pauline González Orozco
am 2 Jun. 2017
Hello, Im in the same trouble Could you solve it Engola?
Thanks
0 Kommentare
Siehe auch
Kategorien
Mehr zu JSON Format finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!