xcos

Scilab 5.5.2 function as a block in xcos : Variable returned by scilab argument function is incorrect [

拜拜、爱过 提交于 2019-12-25 00:38:08
问题 I have been trying to get the ultrasonic data from an arduino using serial communication toolbox in scilab to be brought in the xcos simulation. To do this I followed Include a Scilab function/script as a block in xcos/scicos and created my own function. Is there a way to plot the serialread data in xcos scope? or i think my implementation is wrong in the scilab function. Iam Using Windows 10 64bit SCILAB function function y = serialREAD(a) h = openserial(7, "9600,n,8,1") // open COM7 for ii

Include a Scilab function/script as a block in xcos/scicos

…衆ロ難τιáo~ 提交于 2019-11-29 18:02:04
As the title says I want to include a block where I can run a scilab expression/function/script given certain inputs. I can see xcos/scicos can include C, Fortran and Modelica. There is a Expression block: but the functions are pretty limited: sin, cos, tan, exp, log, sinh, cosh, tanh, int, round, ceil, floor, sign, abs, max, min, asin, acos, atan, asinh, acosh, atanh, atan2, log10. for example if I want to solve a second order equation of ax^2+bx+c=d there are no sqrt or power / ^ operators/functions! Ideally I want to just run a Scilab script/function where I can have complete freedom. I

Include a Scilab function/script as a block in xcos/scicos

不羁的心 提交于 2019-11-28 12:15:11
问题 As the title says I want to include a block where I can run a scilab expression/function/script given certain inputs. I can see xcos/scicos can include C, Fortran and Modelica. There is a Expression block: but the functions are pretty limited: sin, cos, tan, exp, log, sinh, cosh, tanh, int, round, ceil, floor, sign, abs, max, min, asin, acos, atan, asinh, acosh, atanh, atan2, log10. for example if I want to solve a second order equation of ax^2+bx+c=d there are no sqrt or power / ^ operators