Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : Serial Communication details
Please login or create an account

Serial Communication

Communication over a RS-232 Serial Port with Scilab on Windows and Linux
(3108 downloads for this version - 60015 downloads for all versions)
Enrico Segre
Aditya Sengupta
Owner Organization
Indian Institute of Technology Bombay
Samuel Gougeon
Aditya Sengupta
Creation Date
May 30, 2019
Source created on
Scilab 6.0.x
Binaries available on
Scilab 5.5.x:
Windows 64-bit Windows 32-bit Linux 64-bit Linux 32-bit MacOSX
Scilab 6.0.x:
Windows 64-bit Windows 32-bit Linux 64-bit Linux 32-bit MacOSX
Install command
--> atomsInstall("serial")
Serial Communication Toolbox for Scilab

This toolbox enables the use of Serial Communication in Scilab and in Scicoslab
It can run in Scilab for Windows and Linux, but not for MacOS.

 * openserial  — open serial port
 * readserial  — read characters from serial port
 * writeserial — write to the serial port
 * serialstatus — get status of the serial port
 * closeserial — close the serial port

h = openserial(p, smode, translation, handshake, xchar, blocking, timeout)
buf = readserial(h [,n])
err = writeserial(h, buf)
[queue, status] = serialstatus(h)
err = closeserial(h)

Release Notes: 
0.5  : 30/5/2019: ports # > 9 now supported.
0.4.2: 13/3/2017: Toolbox ported to Scilab 6.0
0.4.1: 2/10/2012: Toolbox ported to Scilab 5.5
0.4  : 15/4/2012: Toolbox ported to Scilab 5.4
0.3  : 14/5/2011: Initial release on ATOMS by Aditya Sengupta
       serial is now compatible with Scilab 5.x
0.2.x: 12/1/2009: Final Release by Enrico Segre
0.2  : corrected version after : 
       readserial/writeserial were confused by strings containing
       nonprintable ascii characters

This toolbox is a port 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. Therefore, for
any support related queries or otherwise, please raise an issue on the Github
project page (
You can reach me at [this address](, but I would
prefer you raise an issue on Github for problems with the toolbox. 

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. 
Files (4)
[2.86 kB]
Miscellaneous file
CHANGES 0.4.2 => 0.5   (S. Gougeon)
 * COM #>9 are now accepted
 * eval => evstr (Scilab 6.1)
 * builder.sce :
   - now embedded as a function
   - now complies with Scilab 6
 * Improvements:
  - loader.sce: warning message added when trying to load on MacOS.
  - string(n) => msprintf("%d\n",n)
  - error messages localized
 * Help:
  - See also: short descriptions were not displayed
  - Encoding ISO-8859-1 => UTF-8
[67.86 kB]
Source code archive

[50.43 kB]
OS-independent binary for Scilab 5.5.x

[52.16 kB]
OS-independent binary for Scilab 6.0.x

News (0)
Comments (0)
Leave a comment
You must register and log in before leaving a comment.
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.