scilab with web
Hello,
In my code i need to send some input parameters to scilab, process it there and the result should return back to web.
For example if i want to find factorial of a number using scilab and result should display on button click , how will write code for that.
class file
{
[DllImport(@"F:\scilab-5.4.1\bin\call_scilab.dll", EntryPoint = "StartScilab", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
[DllImport(@"F:\scilab-5.4.1\bin\call_scilab.dll", EntryPoint = "SendScilabJob", ExactSpelling = false,
CallingConvention = CallingConvention.Cdecl)]
public static extern int SendScilabJob(string job);
public void calscilab()
{
StartScilab(null, null, 0);
SendScilabJob("disp(factorial(6));");
}
}
and in default.aspx.cs file
protected void btnres_Click(object sender, EventArgs e)
{
sci.calscilab();
}
pls do help me.