NEWEST VERSION ALWAYS AVAILABLE FROM:
http://www.askrprojects.net/software/siseli/index.html
https://github.com/FMMT666/SiSeLi
Serial ports communication on Windows (Scilab 5.3+)
(some) FEATURES:
- baud rates up to 3MBit/s
- supports DLE sequenced packet mode
- up to 16 simultaneous connections
- easy to use
- ...
Available functions:
slVersion Returns the version of the library.
slUnload Unload the library.
slMount Creates a handle to a COM port and initializes it
slUMount Deletes the handle and frees internal objects.
slCheck Check availability of a COM port.
slConfig Configure a COM port
slOpen Opens a COM port.
slClose Closes a COM port.
slSendByte Sends a byte to the COM port.
slSendArray Sends an array to the COM port.
slCount Counts the available bytes in the receive buffer.
slReadByte Reads a byte from the receive buffer.
slFlush Flushes the receive buffer and resets ov flag
slReadArray Reads up to 32 bytes of data from the buffer.
slReadArrayN Reads an arbitrary amount of data from the buffer.
slSendPacket Sends a DLE sequenced packet.
slReadPacket Reads a DLE sequenced packet.
slCountPacket Counts the number of packets in the receive buffer.
slSetPacketStart Allows cfg. of the 2nd "packet start" bytes STX
slSetPacketEnd Allows cfg. of the 2nd "packet end" bytes ETX
slSetPacketChar Allows cfg. the "special character" byte DLE
Tested and supported platforms:
- Scilab >=5.3, x86 (32 bit) and x64 (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 ;-)
FMMT666(ASkr)
===
*UPDATE* 01/2011:
Added x64 version (ASkr)
*UPDATE* 11/2011:
Packaged as ATOMS module (Allan CORNET - Scilab)
*UPDATE* 10/2012:
Updated to V0.4, included function slReadArrayN
x64 version pending (still V0.3)
ASkr
*UPDATE* 10/2012, #2:
Updated to V0.5, now with baud rates up to 3MBit/s
x64 version pending (still V0.3)
ASkr
*UPDATE* 10/2012, #3:
Zip file V0.5 contained wrong version of "slLoadLib.sci". Fixed.
ASkr
*NEWS* 1/2013:
I moved the source code to Github: https://github.com/FMMT666/SiSeLi
Everyone is welcome to improve the code or boost it forward...
ASkr
*UPDATE* 1/2013:
Updated x86 and x64 versions to V0.6.
Both versions are also available from this site (somewhere below).
Now with fully functional packet mode and up to 16 simultaneous connections.
FMMT666(ASkr)