I try to couple matlab with dymola using the function dymolaM from the MFiles developed by Modelon.
The simulation is running without problem, but after x hours of simulation, I get the following message:
Error using ddeexec
The first argument 'channel' is not valid.
Error in dymolaM (line 59)
status = ddeexec(DymolaChannel, deblank(command(i,:)), '', timeout);
Error in MainFile1 (line 218)
dymolaM(strrep(parChange, ',', ';'));
Does anyone have a hint to solve that problem? Thx!