--> atomsInstall("arduino")
This toolbox provides Arduino communication blocks for Xcos. Communication is performed through Serial port. The Arduino board must be flashed with the file toolbox_arduino_v4.ino (shipped in the module and downloadable from the ATOMS page). TUTORIALS (in english) ---------------------- * Blinking LED Tutorial: https://atoms.scilab.org/toolboxes/arduino/1.5/files/Scilab_Arduino_Blinking_LED_Tutorial.pdf * Temperature monitoring Tutorial: https://atoms.scilab.org/toolboxes/arduino/1.5/files/Scilab_Arduino_Temperature_monitoring_Tutorial.pdf RESOURCES --------- * toolbox_arduino_v4.ino: http://atoms.scilab.org/toolboxes/arduino/1.5/files/toolbox_arduino_v4-1.ino * Demosciences project (in french): http://www.demosciences.fr/projets/scilab-arduino CHANGES 1.4 => 1.5 ================== * toolbox_arduino_v4.ino is now shipped within the toolbox, including the MPU6050 bloc and filtering. Thanks to David VIOLEAU. * etc/arduino-style.xml is partly provided (but it does not (yet) work). BUGS FIXED * Icons labels are restored and improved. * All demos are restored. * In the example9.zcos demo, the PI block refered to an inexisting PIcontrol function. * The arduino.start changed the user working directory. Fixed. * init_arduino() and ARDUINO_post_simulate() had still some old cells TODO: * Initialize properly icons labels * Extend the module to Linux users (through the serial toolbox based on TCL) * Translate help pages in english * Translate blocks interfaces and error messages * Translate demos
Upload date : 2018-09-08 05:54:23 MD5 : 10d8b12d8cb4108c31cbb1b9dc56384a SHA1 : 1bff133e5d88e2f9cba61d1867723ed4aebfe3f7 Downloads : 878
Upload date : 2018-09-08 05:55:11 MD5 : e007039ef755ef813cda049ed3bdc9e5 SHA1 : 83550f21962b1c84bd3265759d495eb314a7b75d Downloads : 1915
Upload date : 2018-09-08 05:55:51 MD5 : e007039ef755ef813cda049ed3bdc9e5 SHA1 : 83550f21962b1c84bd3265759d495eb314a7b75d Downloads : 1069
Upload date : 2018-09-08 05:56:18 MD5 : 1eb084c48653337ebc33b3be86d7681e SHA1 : 5f0c0a344ae18948e9029f4c327e0e456e14d82f Downloads : 12572
Upload date : 2018-09-08 05:56:56 MD5 : 1eb084c48653337ebc33b3be86d7681e SHA1 : 5f0c0a344ae18948e9029f4c327e0e456e14d82f Downloads : 948
Upload date : 2018-09-08 05:59:29 MD5 : f3df470387db46e39b88242708f6646c SHA1 : 4a317b3feffb9e419863ee06d72ada11bed3733e Downloads : 10816
Upload date : 2018-09-08 05:59:50 MD5 : af2358b74331168237df3f6e0f30c6cf SHA1 : d0379937afefc6cc68b5e7560f9caa186e742fcb Downloads : 10361
Upload date : 2018-09-20 20:25:43 MD5 : 8b41df0c841527f2bd3cf081078b9533 SHA1 : 4865bfe9fe0af5f1d89e2d61fd9f714234847c6e Downloads : 4340
The "toolbox_arduino_v4_ino" is in HTML format. Valid Arduino .ino file?
> The "toolbox_arduino_v4_ino" is in HTML format. Valid Arduino .ino file? Thanks for pointing out this formatting error. The file in raw txt format is now available in the above list. It will be replaced within the next version of the package.
This comment has been deleted.
Also, the new version (Arduino 1.5 on Scilab 6.0.1) does not open my previous XCOS files (coded in Aduino 1.3 on Scilab 5.5 for example).
Hello, > Also, the new version (Arduino 1.5 on Scilab 6.0.1) does not open my previous XCOS > files (coded in Aduino 1.3 on Scilab 5.5 for example). This is (unfortunately) not an Arduino issue, but a more general one: Scilab 6.0 is almost never able to load Xcos diagrams generated and saved with Scilab 5.5. This is reported as bug http://bugzilla.scilab.org/15468 This is an awful blocking bug.
> bug http://bugzilla.scilab.org/15468 . This is an awful blocking bug. This bug is now fixed.
Samuel, thank you for response.I want to use my projects written in Arduino 1.3 on Arduino 1.5. They are quite big. Based on your answer I understood that it's not possible to open the Scilab 5.5 XCOS generated files on Scilab 6.0.1. So I installed version 5.5 to be able to "copy them visually". But now I get the following message: "No ATOMS module is available. Please, check your Internet connection or make sure your OS is compatible with ATOMS." The computer and the OS are the same when worked fine. The Internet conn is OK, too. Some suggestion? Thanks.
Yann, Could the fix from Clément be reviewed and merged ASAP?: https://codereview.scilab.org/20522 Dirceu Rodriguers Jr, With Scilab 5.5.2, did you run --> atomsSystemUpdate() before running the ATOMS manager?
Apologize for this my last error: The Scilab 5.5.2 was in offline mode. But by now, issuing the command below I got: atomsInstall('C:\Temp\arduino-1.3.tar.gz') !--error 4 Variable undefined: extract_cmd at line 76 of function atomsExtract called by : at line 153 of function atomsInstall called by : atomsInstall('C:\Temp\arduino-1.3.tar.gz')
Hello, I have Scilab 6.0.1 running on Windows 10 64-bit with the Arduino 1.5 64-bit toolbox. I flashed Arduino Uno board with toolbox_arduino_v4-1 succesfuly, tried some commands like Dw21 on the Serial Monitor and it worked well. But when trying to do the Arduino Blinking LED example (or other one) on Xcos I get the following error prompt: Il faut charger avec le logiciel arduino le sketch toolbox_arduino_v3.ino dans la carte Arduino And this message on Scilab console: communication with card 1 on com 7 is ok Error occurred in pre_xcos_simulate: Cancelling simulation. at line 65 of function pre_xcos_simulate And if I compile the program I get this other one on the console: msprintf: Número incorrecto de argumentos de entrada: Los datos no entran en el formato. do_eval: Error while calling block ARDUINO_DIGITAL_WRITE [uid='']: invali d parameter (ier=999.000000, %scicos_prob=%F). I've tried different configurations, re-install, but nothing seems to work. I would appreciate some help. Thank you.
Hello, Could you please report issues in the dedicated tool, on the Arduino forge http://forge.scilab.org/index.php/p/arduino/issues ? It is not possible to keep track of and discuss issues and solutions here. This is not the right place. Thanks. > I have Scilab 6.0.1 running on Windows 10 64-bit with the Arduino 1.5 64-bit toolbox. > I flashed Arduino Uno board with toolbox_arduino_v4-1 succesfuly, tried some commands > like > Dw21 on the Serial Monitor and it worked well. But when trying to do the Arduino > Blinking > LED example (or other one) on Xcos I get the following error prompt: > > > Il faut charger avec le logiciel arduino le sketch toolbox_arduino_v3.ino dans la carte > > Arduino > > And this message on Scilab console: > > > communication with card 1 on com 7 is ok > > Error occurred in pre_xcos_simulate: Cancelling simulation. > at line 65 of function pre_xcos_simulate > > And if I compile the program I get this other one on the console: > > msprintf: Número incorrecto de argumentos de entrada: Los datos no entran en el > formato. > > do_eval: Error while calling block ARDUINO_DIGITAL_WRITE [uid='']: invali > d parameter (ier=999.000000, %scicos_prob=%F). When you report error messages, please be sure to report the whole message, including upstream references (with lines numbers, etc). Otherwise, it is much harder to identify the issue, when it is not fully reproducible. By the way, here, the "999.000000" display tells that format() has very likely been used to change the formatting (and display) of numbers. This may yield many issues.
>... I get the following error prompt: > > Il faut charger avec le logiciel arduino le sketch toolbox_arduino_v3.ino dans la carte Arduino This is fixed in Arduino 1.6. Please have a try.
Is it possible to edit the toolbox_arduino_v3.ino code to cater an ultrasonic sensor so that I can use an ultrasonic sensor in Scilab? like this void loop() { scilabFnc(); // toolbox_arduino_v3 function delay(10); ultraFunc(); // Ultrasonic sensor Function delay(10) } I tried it but scilab gives me an error while using the arduino toolbox like The toolbox_arduino_v3.ino sketch must be loaded with Arduino software in the Arduino board
> Is it possible to edit the toolbox_arduino_v3.ino code to cater an ultrasonic sensor so > > that I can use an ultrasonic sensor in Scilab? like this > void loop() { > scilabFnc(); // toolbox_arduino_v3 function > delay(10); > ultraFunc(); // Ultrasonic sensor Function > delay(10) > } > > I tried it but scilab gives me an error while using the arduino toolbox like > > The toolbox_arduino_v3.ino sketch must be loaded with Arduino software in > the Arduino board This error was not specific to your trial. It is fixed in Arduino 1.6. Please retry with it and do not hesitate to report your result. Thanks
Same here, "Il faut charger avec le logiciel arduino le sketch toolbox_arduino_v3.ino dans la carte Arduino" Scilab 6.0.2 Arduino toolbox 1.5 Arduino IDE 1.8.9 same error if I use toolbox_arduino_v4-1.ino.
> Same here, "Il faut charger avec le logiciel arduino le sketch > toolbox_arduino_v3.ino dans > la carte Arduino" > > Scilab 6.0.2 > Arduino toolbox 1.5 Should now be fixed in Arduino 1.6.
As for "Il faut charger avec le logiciel arduino le sketch toolbox_arduino_v3.ino dans la carte Arduino" error, I found a strange behavior of read_serial() function in arduino toolbox 1.5 After setup Arduino on USB and from the scilab console, commands open_serial(1,5,115200) and write_serial(1,"R3",2) get ans = 0, but successive command read_serial(1,2) almost every time returns v3cal or v3 trailing with some other characters. If serial communication toolbox installed, commands openserial, writeserial and readserial work fine and I can stably get clean "v3" response after reopening scilab. ARDUINO_pre_simulate() function verify "v3" response by these arduino 1.5 toolbox command, the error occurs inevitably, I tried changing serial speed with no luck. Does someone know any fix or suggestions? Scilab 6.0.2 Arduino toolbox 1,5 windows 7 32bit