RE: Octave-maintainers Digest, Vol 156, Issue 34

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

RE: Octave-maintainers Digest, Vol 156, Issue 34

John Donoghue-3
> ------------------------------
>
> Message: 3
> Date: Wed, 20 Mar 2019 05:05:11 -0500 (CDT)
> From: Igor1954 <[hidden email]>
> To: [hidden email]
> Subject: Re: arduinosetup error
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=us-ascii
>
> Thank you, John.
>
> I run :
>
> 1. I connected arduino board.
>
> 2. Octave:
> arduinosetup('arduinobinary','C:\Program Files\Arduino/arduino.exe')
> Running "C:\Program Files\Arduino/arduino.exe"
> "C:\Users\50B9~1\AppData\Local\Temp\oct-tB4Quv\octave\
> octave.ino"
>
> 3. Then  in the Arduino IDE opened a sketch Octave.
>
> 4. I press the upload button on the IDE.
>   Download completed successfully.
>
> 4.  I closed Arduino IDE.
>
>
> 5.  r = arduino()
> r =
>   arduino object with fields of:
>     port = COM4
>     board = uno
>     libraries = {
>       core
>       i2c
>       spi
>       servo
>       shiftregister
>     }
>     availablepins = {
>       d0 - d13
>       a0 - a5
>     }
>
> 6.?????
> scanForArduinos
> ans = {}(0x0)
>
> Question.
> 1. List the ports of all programmed available arduinos missing?
> 2. I ask to clarify - when should I restart arduino ide? After n.4?
>
>


Since you have the port already open in  5, scanForArduinos isn't going to
check that port.
If you clear that Arduino variable , or restart octave, and then call
scanForArduinos, it should show it.

After programming the Arduino you don't need to reopen the Arduino ide,
unless you want to program it again