Comment utilise - t - on DDE (ddeinit ; ddeexec ; ddeterm) ?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ENGOLA Arsène
el 19 de Mzo. de 2016
Respondida: Rossy Pauline González Orozco
el 2 de Jun. de 2017
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 comentarios
Respuestas (3)
Steven Lord
el 20 de Mzo. de 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 comentarios
Rossy Pauline González Orozco
el 2 de Jun. de 2017
Hello, Im in the same trouble Could you solve it Engola?
Thanks
0 comentarios
Ver también
Categorías
Más información sobre JSON Format en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!