Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : ScilabSerialLib details
Login with GitLab

ScilabSerialLib

Serial ports communication on Windows (Scilab 5.3+)
(4074 downloads for this version - 8245 downloads for all versions)
Details
Version
0.3.1
A more recent valid version exists: 5.3
Author
ASkr
Owner Organization
TKÜV
Maintainers
Allan CORNET
AS Kr
Categories
License
Creation Date
October 2, 2012
Source created on
Scilab 5.4.x
Binaries available on
Scilab 5.4.x:
Windows 32-bit Windows 64-bit
Install command
--> atomsInstall("siseli")
Description
            Serial ports communication on Windows (Scilab 5.3+)

slCheck — Check availability of a COM port.
slClose — Closes a COM port.
slConfig — Configure a COM port (baudrate, databits, parity and stop bits).
slCount — Counts the available bytes in the receive buffer.
slFlush — Flushes the receive buffer and resets the overflow flag (if set)
slInit — Initializes some internal objects.
slLoad — Loads the library and links functions.
slMount — Creates a handle to a COM port and initializes internal objects.
slOpen — Opens a COM port.
slReadArray — Reads up to 32 bytes of data from the buffer.
slReadByte — Reads a byte from the receive buffer.
slSendArray — Sends an array to the COM port.
slSendByte — Sends a byte to the COM port.
slSendPacket — Sends a DLE STX DATA DLE DLE ETX packet
slSetPacketChar — Allows configuration of the special character byte
slSetPacketEnd — Allows configuration of the 2 packet end bytes
slSetPacketStart — Allows configuration of the 2 packet start bytes
slUMount — Deletes the handle and frees internal objects.
slUnload — Unload the library
slVersion — Returns the version of the library

Tested and supported builts/platforms:

 - Scilab 5.3.0-BETA4 (32 bit)
 - Scilab 5.3.0 (32 & 64 bit)
 - Windows XP Pro and Home (SP3, 32Bit)
 - Windows 7 (32 & 64 Bit)


If you need serial ports in Scilab 5+, give it a try.
If it doesn't work:

- Drop me a note and I'll see what I can do.
- Source code is included. Use it ;-)

ASkr


===
*UPDATE* 11/2011:
  Packaged as ATOMS module (Allan CORNET - Scilab)

*UPDATE* 01/2011:
  Added x64 version.
            
Files (3)
[405.32 kB]
Source code archive
makes it available for Scilab 5.4
[445.24 kB]
Windows 32-bit binary for Scilab 5.4.x
Windows 32-bit
Automatically generated by the ATOMS compilation chain

[445.31 kB]
Windows 64-bit binary for Scilab 5.4.x
Windows 64-bit
Automatically generated by the ATOMS compilation chain

News (0)
Comments (4)     Leave a comment 
Comment from ivan stanisheuski -- October 10, 2012, 06:35:56 PM    
Is the limitation of reading up to 32 bytes of data from the buffer so principled to remain

unchanged in foreseeable future?
Comment from AS Kr -- October 11, 2012, 02:29:54 AM    

Would something like this fit your needs?

  <array> = slReadArrayN( <handle>, <length>)


ASkr
Comment from ivan stanisheuski -- October 17, 2012, 06:59:32 PM    
Definitly yes.
The best value of the length would be at least 256 or more.
If it sets up no errors or decrease in data acquisition speed, then the bigger the better. 
Leave a comment
You must register and log in before leaving a comment.
Login with GitLab
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.