Error on Port type or Size for Xcos Block

classic Classic list List threaded Threaded
1 message Options
mitkatwala mitkatwala
Reply | Threaded
Open this post in threaded view
|

Error on Port type or Size for Xcos Block

This post was updated on .
I am developing MATDET block of Scilab's Xcos simulator on the web(using JS) but getting this pop up 'Error in port size or type' when I simulate a diagram by giving a matrix input to MATDET using const_m block.

If I just give an integer input than the simulation works. I have given port sizes of input and output as per .sci file of MATDET:

in: list(in,in2,intyp)
in: [[-1,-1],1] OR [[-1,-1],2] (Input by user)

out: list(out,out2,outyp)
out: [[1,1],1] OR [[1,1],2] (input by user)


Please see the following simulation diagrams:

1) Simulation Diagram: https://imageshack.com/a/img923/5282/nUC97z.png

2) Simulation Error with matrix input:
https://imageshack.com/a/img924/4111/GLDCIX.png

3) Simulation Working with integer input:
https://imageshack.com/a/img922/9734/0oMkl5.png

Can anyone please help me understand why am I getting such an error and how can I fix it?


--
Sent from: http://mailinglists.scilab.org/Scilab-developers-Mailing-Lists-Archives-f2574944.html
_______________________________________________
dev mailing list
dev@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/dev