Hello,
I'm using scilab 6.0.0 and the "Serial Toolbox".
I could establishe a serial communication (RS485).
I'm using the fuction "result = writeserial(h,buf)". The variable buf is a
string. How can I send asci codes greater than 127? For example I want send
a "À" which will be represente as 0xC0
Good day,
I made a relatively complex HMI with Scilab which uses pushbuttons with
callbacks from uicontrol 'library'. Particularly, one pushbutton is used
to make visible or invisible a configuration window, which also contains
sliders with callbacks. The button to make visible or invisible
Hello Alexis,
Le 13/10/2017 à 15:02, Alexis Cros a écrit :
Good day,
I made a relatively complex HMI with Scilab which uses pushbuttons
with callbacks from uicontrol 'library'. Particularly, one pushbutton
is used to make visible or invisible a configuration window, which
also contains
Ok I join a simplified example on which we can witness my problem.
It runs on Scilab 6.0.0.
Nice week end
Alexis
Le 13/10/2017 à 15:02, Alexis Cros a écrit :
Good day,
I made a relatively complex HMI with Scilab which uses pushbuttons
with callbacks from uicontrol 'library'.
Hi Philippe:
Where this error?
// The function to differentiate
function val = HH(z)
x=z(1);
y=z(2);
val=(1.25*y-sqrt(abs(x))).^2+x.^2-1;
endfunction;
// The exact gradient
function Sys=ge(x)
gx=x(:,1);
gy=x(:,2);
g1=2*gx-(gx.*(1.25*gy-sqrt(abs(gx./abs(gx).^(3/2);
A possible solution,
we compare "diffcode_jacobian" and "numderivative". in this case seem to
calculate with the same accuracy
function val = HH(z)
x=z(1);
y=z(2);
val=(1.25*y-sqrt(abs(x))).^2+x.^2-1;
endfunction;
function z=f(x)
z(1,1:2)=diffcode_jacobian(HH,x)