Tweet |
The SOCKET Toolbox for Scilabfor TCP IP instrumentation without the VISA layer |
PresentationThe WINSOCKET Toolbox was available since 2006. But this NEW toolbox DO NOT USE the Winsocket librairy. The source code is 100% Scilab and it works whatever your OS (Windows, Linux, OS X,...). You just need Scilab and the embedded TCL TK kernel. The functions are quite the same between this version and the WinSocket toolbox. The only difference is the buffer : you don't have to specify it during SOCKET_read() or SOCKET_query() calls.
Example// Exemple done with two iTuners by Focus Microwave SOCKET_open(1,"10.0.0.1",23); // The session #1 is opened SOCKET_open(2,"10.0.0.2",23); // The session #2 is opened // Now we can communicate with devices... SOCKET_query(2,"help") SOCKET_query(1,"IP?") Other example : check your mail-->SOCKET_open(1,"pop.laposte.net",110) -->SOCKET_write(1,"user tibault.reveyrand") -->SOCKET_read(1) ans = !+OK connected to pop3 on 8201 ! ! ! !+OK name is a valid mailbox ! --> _ Download and installation1. Download the archive file here :
Scilab 4.xx and Scicoslab toolbox
2. Unzip the file in your Scilab contrib directory (SCI+\contrib)Scilab 5.xx toolbox Thanks to Yann Colette for the Scilab 5.2 version. 3. Install the Toolbox : exec(SCI+'/contrib/SOCKET/builder.sce') 4. Now, the SOCKET toolbox can be loaded from the Scilab Toolbox menu. | ||||||
Publications : They talk about it !
|