[Scilab-users] Integrating SciLab and EPANET (.dll written in C/C++)
Chuox
chuox.bece at gmail.com
Fri Jul 12 04:56:51 CEST 2013
Cheers! I found this in the EPANET toolkit help:
An example of using these functions is shown below.
char *f1, /* Name of input file */
*f2, /* name of report file */
*f3; /* name of output file (can be blank) */
int errcode;
errcode = ENopen(f1, f2, f3);
if (errcode > 0) {
ENclose();
return;
}
{ Call functions that perform desired analysis }
ENclose()
So... the correct use of the ENopen function should be something like this:
errorcode=call("ENopen","C:\Users\Alfredo\Google
Drive\Tesis\SciLab\Net1.inp",1,"c","temp1.$$$",2,"c","",3,"c","out",[1,1],4,"i")
errorcode = 1
It Should be errorcode = 0 , so maybe im still doing something wrong.
--
View this message in context: http://mailinglists.scilab.org/Integrating-SciLab-and-EPANET-dll-written-in-C-C-tp4026977p4027020.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list