[Scilab-users] Sockets in scilab 6.0

classic Classic list List threaded Threaded
2 messages Options
James Holland James Holland
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] Sockets in scilab 6.0

I want to communicate with an oscilloscope through an Ethernet connection. I
have downloaded the files linked from the Atoms page.
If I try to run the loader then I get the message 'lib: Old binary lib
detected. Please recompile it for Scilab 6.' I don't see any files that
aren't Scilab so I ran 'builder.sce'. I get the following message:
'--> exec('C:\Users\James.Holland\Documents\Scilab\socket
src\builder.sce',-1)
Building macros...
-- Creation of [socket_toolboxlib] (Macros) --
Building help...

Building the master document:
        C:\Users\James.Holland\Documents\Scilab\socket src\help\en_US

Building the manual file [javaHelp] in
C:\Users\James.Holland\Documents\Scilab\socket src\help\en_US.

Building the master document:
        C:\Users\James.Holland\Documents\Scilab\socket src\help\fr_FR

Building the manual file [javaHelp] in
C:\Users\James.Holland\Documents\Scilab\socket src\help\fr_FR.
WARNING: tbx_build_loader: tbx_build_loader(name, path) is obsolete. Please
use tbx_build_loader(path) instead.
Generating loader.sce...
Generating unloader.sce...
WARNING: tbx_build_cleaner: tbx_build_cleaner(name, path) is obsolete.
Please use tbx_build_cleaner(path) instead.
Generating cleaner.sce...
'

After that I ran the loader which returned:
--> exec('C:\Users\James.Holland\Documents\Scilab\socket src\loader.sce',-1)
Start Socket Toolbox
        Load macros
        Load help
        Load demos
I then get the following error:

<code>
--> exec('C:\Users\James.Holland\Documents\Scilab\socket
src\demos\ex_1.sce',-1)

    []

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat
mat=["<!doctype html><html itemscope=""""
itemtype=""http://schema.org/WebPage"" lang=""en-GB""><head><meta
content=""text/html; charset=UTF-8"" http-equiv=""Content-Type""><meta
content=""/images/branding/googleg/1x/googleg_standard_color_128dp.png""
itemprop=""image""><title>Google</title><style>#gb{font:13px/27px
Arial,sans-serif;height:30px}#gbz,#gbg{position:absolute;white-space:nowrap;top:0;height:30px;z-index:1000}#gbz{left:0;padding-left:4px}#gbg{right:0;padding-right:5px}#gbs{background:transparent;position:absolute;top:-999px;visibility:hidden;z-index:998;right:0}.gbto
#gbs{background:#fff}#gbx3,#gbx4{background-color:#2d2d2d;background-image:none;_background-image:none;background-position:0
-138px;background-repeat:repeat-x;border-bottom:1px solid
#000;font-size:24px;height:29px;_height:30px;opacity:1;filter:alpha(opacity=100);position:absolute;top:0;width:100%;z-index:990}#gbx3{left:0}#gbx4{right:0}#gbb{position:relative}#gbbw{left:0;position:absolute;top:30px;width:100%}.gbtcb{position:absolute;visibility:hidden}#gbz
.gbtcb{right:0}#gbg .gbtcb{left:0}.gbxx{display:none
!important}.gbxo{opacity:0 !important;filter:alpha(opacity=0)
!important}.gbm{position:absolute;z-index:999;top:-999px;visibility:hidden;text-align:left;border:1px
soli
                                                                                                                                                                                                                                                                                                                                                                             
^^
Error: Heterogeneous string detected, starting with " and ending with '.
</ code>



Has anyone successfully used socket_toolbox_2.0.1_5.5 within Scilab 6.0?
How do I get the toolbox to load on start up like other Atoms modules?

TIA James






--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
James Holland James Holland
Reply | Threaded
Open this post in threaded view
|

Re: Sockets in scilab 6.0

I've played about with this some more. The toolbox did install and is
accessed from the 'toolboxes' tab at the top - I haven't used that before.
The code seems to work except for the syntax problem ' and '' and the
undefined variable that keeps coming up - maybe a caused by there not being
a delay between the write and the read.
If I change the example code from google.fr to another website it doesn't
work, no idea why, I will try it with an oscilloscope next.



--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users