Serialport native functions to read and write on COM port (work in progress) uses API win32 for windows & termios on linux openCOM closeCOM purgeCOM readCOM writeCOM. Arduino UNO + TMP36 temperature sensor + Scilab 1. Create circuit with TMP36 sensor (google for examples) 2. Connect arduino to computer via USB port (it is for data exchange and power). ATOMS Real Time Serial Communication Toolbox for Scilab Install it and re-run scilab 5. Type Scinotes or go to Applications SciNotes.
This toolbox enables the use of Serial Communication in Scilab and Scicoslab. This is a fork of Aditya Sengupta's repository. Which was also a fork of the Portable Serial Toolbox for Scilab originally written by Enrico Segre and has been ported to Scilab 5.x and released with his kind permission. It is licensed, at his request, under the GPLv3.
Enrico does not wish to provide support for this toolbox anymore. An unfortunately Aditya Sengupta has also not updated his repo for the last 8 years (Twitter discussion here). Therefore, for any support related queries or otherwise, please raise an issue on this repo. You can reach me at this address, but I wouldprefer you raise an issue on Github for problems with the toolbox.
This toolbox is known to have worked so far on Linux based systems and on Windows (up till Windows 10 version 1809).
The implementation via TCL wrappers is certainly suboptimal, but shouldn't be such a penalty, given the low bandwidth and the intrinsic asynchronous mode of serial communication. And mainly, it relieves the developer from supporting many platforms at once.
A demonstration of the Toolbox coupled with SimulIDE (instructions here):
![Scilab toolbox tutorial Scilab toolbox tutorial](/uploads/1/2/6/2/126262568/161679649.png)
03/03/2019:
- now accepts com ports more than 9
- the issue with
eval
deprecation resolved readserialline
finction added to read the serial port line by line (more info here)- unnecessary
binary scan
removed. - code clean up
- first implementation of
seriallist
15/4/2012:
![Read Read](/uploads/1/2/6/2/126262568/279380425.jpg)
v.0.4: Toolbox updated to be compatible with Scilab 5.4
14/5/2011:
(First Release by Aditya Sengupta)
v.0.3: Toolbox is now compatible with Scilab 5.x, along with help files.
12/1/2009:
(Final Release by Enrico Segre)
v.0.2: corrected version after report of bug3829: readserial/writeserialconfused by strings containing nonprintable ascii characters,
Toolbox essentially still geared for scilab 4.x (4.1.2, scicoslab) in the sense that:
builder.sce
andloader.sce
make use ofxmltohtml()
,add_help_chapter()
; xml files are based on the 4.x dtd (IF I would be able to make doc in scilab5 I might even consider to package a new help page set together with the old)- in many points the detour
TCL_EvalStr('set answ [....]'); TCL_GetVar('answ')
is still implemented (was mandatory prior to request319), it is not requiredsince scilab 4.1.2
However, the toolbox is reported to work with Scilab 5.0.2 final [I suppose,without help pages readable in the help widget, but that's minor; html filesprovided, anyway]