Small set of Scilab/Xcos blocks designed for I/O data communication in Linux. Source code available on request, please send e-mail to fabo(dot)peter(at)gmail(dot)com.
Description
|
Simple interprocess communications (peer to peer) via Linux (POSIX) system FIFO.. Block for writing into the FIFO. Input vector is converted to a ASCII string, string start with STX, ends with ETX, values delimiter is '\n'.
|
|
Simple interprocess communications (peer to peer) via Linux (POSIX) system FIFO. Block for reading from FIFO. Convert input strings with ASCII values, string start with STX, ends with ETX, values delimiter is '\n' and converts it into output vector (size adjustable).
|
|
Communication with standard serial devices (/dev/tty****) - USART, USB/RS232 adapters with FTDI chips and virtual serial ports (/dev/pts/*). Block for writing <0.0 ... 255.0> double vector[max 32] in the serial device. Negative values are ignored.
|
|
Communication with standard serial devices (/dev/tty****) - USART, USB/RS232 adapters with FTDI chips and virtual serial ports (/dev/pts/*). Block for reading double vector[max 32] from serial device with timeout. Standard value range <0.0 ... 255.0>, -1 after timeout.
|
|
Simple UDP intranet/internet communications. Block for writing UDP. Input vector is converted to a ASCII string, string start with STX, ends with ETX, values delimiter is '\n'.
|
|
Simple UDP intranet/internet communications. Block for reading UDP. Convert input strings with ASCII values, string start with STX, ends with ETX, values delimiter is '\n' and converts it into output vector (size adjustable).
|
|
Block read random numbers from /dev/urandom and converts it into output vector (size adjustable).
|