I've done as you've said.
When I run the first time there is no error message and
the servo works well.
Then I typed "clear all" and worked well again but
showing two warnigs.
After that I tried to run the program without "clear
all" and the servo didn't work and I didn't got error or
warnings messages.
Finally I typed "clear all" and worked well showing the
warnings.
I'm sending all the output.
GNU Octave, version 4.2.2
Copyright (C) 2018 John W. Eaton and others.
This is free software; see the source code for copying
conditions.
There is ABSOLUTELY NO WARRANTY; not even for
MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type
'warranty'.
Octave was configured for "x86_64-pc-linux-gnu".
Additional information about Octave is available at
http://www.octave.org.
Please contribute if you find this software useful.
For more information, visit
http://www.octave.org/get-involved.html
Read
http://www.octave.org/bugs.html
to learn how to submit bug reports.
For information about changes from previous versions, type
'news'.
>> pkg load arduino
>> provaArduino3
HERE
WORKED WELL
a = 10
b = 20
myServo =
arduino servo object with fields of:
pins = d9
minpulseduration = 0.001000
maxpulseduration = 0.002000
c = 30
d = 40
position = 0.50000
>> clear all
>> provaArduino3
HERE WORKED WELL
a = 10
warning: duplicate binary operator '==' for types
'octave_serial' and 'octave_serial'
warning: duplicate binary operator '!=' for types
'octave_serial' and 'octave_serial'
b = 20
myServo =
arduino servo object with fields of:
pins = d9
minpulseduration = 0.001000
maxpulseduration = 0.002000
c = 30
d = 40
position = 0.50000
>> provaArduino3
HERE
DIDN'T WORK
a = 10
b = 20
myServo =
arduino servo object with fields of:
pins = d9
minpulseduration = 0.001000
maxpulseduration = 0.002000
c = 30
d = 40
position = 0.50000
>> clear all
>> provaArduino3
HERE
WORKED AGAIN
a = 10
warning: duplicate binary operator '==' for types
'octave_serial' and 'octave_serial'
warning: duplicate binary operator '!=' for types
'octave_serial' and 'octave_serial'
b = 20
myServo =
arduino servo object with fields of:
pins = d9
minpulseduration = 0.001000
maxpulseduration = 0.002000
c = 30
d = 40
position = 0.50000
>>