Open sichu366 opened 4 years ago
Hi @sichu366, yes. Must be edited the MSX file to contains the id(s) of input file. You can check out the example: https://github.com/OpenWaterAnalytics/EPANET-Matlab-Toolkit/blob/dev-2.2-edit/examples/EX15_write_msx_file.m
Also, you can find the next versions of EMT on repo: https://github.com/OpenWaterAnalytics/EPANET-Matlab-Toolkit
Thanks, Marios
Hi, I encounter a very interesting bug here. The name of the reservoir in a network made a difference when loading MSX file via loadMSXFile command.
In order to reproduce, please (1) download bugreport.zip first (2) run bugreport.m
when running case 1, there is Error 506 - could not read MSX input file. when running case 2, there is no error. And the code is exactly the same for case 1 and case 2 (only three lines), the only difference is the reservoir's name is different in source file Network_1.inp and Network_2.inp
I put the code here for your convinence % Case 1 close all; clear; G = epanet('Network_1.inp'); % Load EPANET Input file G.loadMSXFile('Arsenite.msx'); % Load MSX file
% Case 2 close all; clear; G = epanet('Network_2.inp'); % Load EPANET Input file G.loadMSXFile('Arsenite.msx'); % Load MSX file
bugreport.zip
The details of error:
EPANET loaded successfully. Loading File "Network_1.inp"... Input File "Network_1.inp" loaded sucessfuly. Error 506 - could not read MSX input file. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Error 519 - an MSX project was not opened. Output argument "value" (and maybe others) not assigned during call to "epanet/getMSXSourceType".
Error in epanet>MSXMatlabSetup (line 7402) obj.MSXSourceType = obj.getMSXSourceType;
Error in epanet/loadMSXFile (line 2882) MSXMatlabSetup(obj,msxname);