Scilab

Dear Community,
after installing the upgrade to Labview 8.5.1, Labview crashes
when i try to open a vi, which contains Scilab Script Nodes or
if i try to create a new Scilab Script node in an empty VI.
I've even installed the SciLab Gateway again and i've restarted my PC: The behaviour is still the same !
Does Labview 8.5.1 not support the SciLab Gateway ?
Thanks for your reply
Andreas
Attachments:
new_scilab_node_00.gif ‏38 KB

Hello Andreas,
I was not able to get the alpha release of Scilab 5, but I found the beta-1 release.  I installed Scilab 4.1.1 and then Scilab 5 beta-1.  There is a small issue with registry settings.  Since you were able to make the Gateway work, perhaps this is an issue unique to the beta.  If you are comfortable editing your registry, navigate to HKLM\SOFTWARE\Scilab\scilab-5.0-beta-1.  Locate the SCIPATH value and change it to remove the double quotes around the path.  I have worked with the Scilab developers and this seems to be fixed in the latest daily build of Scilab.
If you uninstalled the alpha version, it is odd that you saw the behavior you did with old nodes failing but new nodes working.  Try editing your registry again.  Navigate to HKLM\SOFTWARE\Scilab and look at the LASTINSTALL value.  The contents of this will be the registry key used by the Gateway to read the SCIPATH value.  Make sure it is set to be the version of Scilab you wish to use.  If you are not comfortable editing the registry, reinstalling the previous version of Scilab will restore this value.
If you wish to use Scilab 5, try installing the latest daily build.  If you continue to see problems, indicate which daily build you are using and post the values of the following registry settings:
LASTINSTALL from HKLM\SOFTWARE\Scilab
SCIPATH from HKLM\SOFTWARE\Scilab\$(LASTINSTALL)
Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments

Similar Messages

  • Using "getf" command in Scilab-LabVIEW Gateway

    I am having trouble using the "getf" command in the Scilab-LabVIEW Gateway.
    I would like to load an external Scilab function using the LabVIEW script
    node and perform an operation with it.
    In Scilab, the following code works correctly:
                                 scilab-4.1.1
                          Copyright (c) 1989-2007
                      Consortium Scilab (INRIA, ENPC)
        Startup execution:
          loading initial environment
        -->getf "C:/program files/scilab-4.1.1/macros/dec2bin.sci";
        -->dec2bin(10,4)
         ans  =
          1010
        -->    
    However, when I execute the same code in the Scilab-LabVIEW Gateway, I
    receive the error:
        Error 1048 occured at LabVIEW:  LabVIEW failed to get variable from
        script server. Server:"" in Untitled 1
        Possible Reason(s):
        LabVIEW:  LabVIEW failed to get variable from script server.
    Is it possible to use "getf" in the Scilab-LabVIEW Gateway?
    Thanks,
    Joe
    Attachments:
    scilab_terminal.JPG ‏29 KB
    labview_scilab_error.JPG ‏28 KB

    Hi,
    You may want to contact the persons responsible for creating the Scilab to LabVIEW Gateway.  I have seen this error with scripts usually when it is required to have user inputs and have the user interact with the program.  Sometimes fixing this problem is if you associate the variable being called to an input in LabVIEW.
    I hope this helps,
    Regards,
    Nadim
    Applications Engineering
    National Instruments

  • Application crashes after closing LabVIEW instance with Scilab 5.2.2

    I use LV 8.21 with the LabVIEW to Scilab Gateway software Version 1.1 (new version from NI homepage)
    I have Scilab Version 5.2.2 installed. We will do some calculation with the LabVIEW Scilab script node.
    Mainly use a call "exec (functionA,-1) Scilab script node. The functionA is a scriptfile outside of the application.
    So far everything is working fine, I can build a LabVIEW application with the application builder.
    If I run the application the calculation inside the Scilab script node are proceeding; I can call
    it many times in a loop without no problem.
    But if I close the instance (the VI with the Scilab script node inside) the application crashes.
    The same problem I have in the LabVIEW development environment  
    Is there a way to "unload" Scilab before I close the VI without a crash. After the Scilab
    calculation I have to close the calling VI and call some other VIs for further calculation
    (but this VIs have no Scilab call)
    I tried with the "exit" and "quit" command in Scilab script node, no success
    any suggestion
    Attachments:
    scilab.GIF ‏5 KB

    Hello
    thanks for the advice. I tried with version 5.1.1   ...    but no success!
    So I went straight back to version 4.1.1 and it works fine, of course I had to remove the comments from the script node 
    So fare I can work with this version.
    So what are the time schedule to fix this problem? It is a very useful tool an I would like to use the latest version of scilab and not an old version.
    Thank you

  • How to convert string matrix to a matrix that can be potted using plot3dl function in scilab

    Hello everyone,
    When I try to put this matrix named power into the "plot3d1 (x,z,power)" function of scilab as one of the arguments, I get an error- "!--error 246
    Function not defined for given argument type(s),
      check arguments or define function %c_plot3d1 for overloading. "
    I think it has a problem with the type of the matrix "power" which is string type.  I'mr reading the matrix "power" from an input csv file.
    the other two aguments- x and z  are of the type "double".
    can anyone suggest possible solutions?

    What does this have to do with LabVIEW? 
    While I have never used scilab, I suspect that your idea that the plot function does not accept strings is correct. In LabVIEW it is easy to read a csv file and convert it to a numeric array.
    Lynn

  • Calling a vi in scilab script

    Hello!
    What I'm trying to do here is the following: I am developping a VI that uses a certain algorithm to function. I put the algorithm into a Scilab script structure, no problem here I already did that.
    The problem is, during the execution of the script at many points I need to get additional data through a sub-VI. I want to avoid a structure that looks like Script=>sub-VI=>Script=>subVI=>etc...so my question is: how can I call a sub-VI from inside the Scilab script?
    Thank you very much!

    Hello, thanks for the quick answer.
    I do not have a screen capture at hand, besides my VI a a bit too messy at the moment, but hopefully it can be explained quite clearly.
    Basically, I am implementing a Nelder-Meads simplex method, where the input of the script is the coordinates of 3 points, and from it the coordinates of one or two other points are calculated. Problem is, from here the algorithm needs to go measure those new points physically, using another sub-VI. After which I need to input those measurements into another script so I can compare all the points and choose which ones are better.
    Actually I decided to code it like I described, alternating scripts and sub-VIs (I kinda had a schedule to follow ), but I thought it would still be interesting to know if it is actually possible to do it with one big script.
    During my search I found some interesting leads using matlab, namely using ActiveX (there) but I couldn't find corresponding commands in Scilab.
    Any ideas about that? or any other ways to do it?
    thanks!

  • [SOLVED] Installed Scilab, can't use Xcos

    Hello.
    I have installed Scilab with a regular pacman -S.
    I can start Scilab and use its main functions. But when I try to use Xcos, I get this message:
    Scilab wrote:java.lang.UnsatisfiedLinkError: /usr/lib/libjhdf5.so: libhdf5.so.6: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio (that's in english something like: can't open file or directory, because it doesn't exist)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
        at java.lang.Runtime.loadLibrary0(Runtime.java:845)
        at java.lang.System.loadLibrary(System.java:1084)
        at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:289)
        at ncsa.hdf.hdf5lib.H5.<clinit>(H5.java:225)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.scilab.modules.xcos.Xcos.checkDependencies(Unknown Source)
        at org.scilab.modules.xcos.Xcos.<init>(Unknown Source)
        at org.scilab.modules.xcos.Xcos.getInstance(Unknown Source)
        at org.scilab.modules.xcos.Xcos.xcos(Unknown Source)
    if with_module("xcos") then xcos(); else disp(gettext("Please install xcos module.")); end
                                       !--error 999
    xcos: Imposible cargar la biblioteca hdf5-java (jhdf5). (impossible to load hdf5-java library)
    Se esperaba la versión [1, 8, 4] ; se obtuvo la versión [0, 0, 0] . (version [1,8,4] expected; version [0,0,0] obtained]
    while executing a callback
    Any ideas on the problem.
    Thanks in advance.
    Last edited by usuario1986 (2011-09-26 01:16:50)

    Please use [ code ] tags, not [ quote ] tags for posting snippets of code.
    Run
    LC_ALL=C <command>
    to get output in English.
    If you enabled C locale, it should work.
    https://bugs.archlinux.org/task/24195 sounds similar to your problem.

  • Scilab Gateway under Labview 8.2 and 8.5

    Hi Newsgroup,
    i am a Labview Starter and working for a longer time with Scilab.
    Herefore, the gateway function is a nice tool for me.
    When i create a VI with the Scilab Gateway, it works really perfect
    under Labview 8.2.1 (Jubilee Edition), but under Labview 8.5 the VI
    seems to be not correct. The "Run"-Arrow is displayed broken, nothing
    works.
    Funny Effect in Labview 8.5 beside: In a few cases i've seen the
    effect, that my VI works just one time, then never again ?
    Have i done mistakes while installing anything. Or are there hidden
    registry entries ?
    Best Regards
    Andreas

    Andreas wrote:
    i guess, i find one point: In the block diagram window in LabView
    8.2.1 i make a right click on the script-box and open the menu item
    "choose script server". Here, Scilab is displayed and choosen.
    When i do the same in LabView 8.5, the menu item "choose Script
    server" does not show me Scilab. The entry "Scilab" is not available.
    Works just fine here in LabVIEW 8.5. Did you restart LabVIEW after installation?
    Message Edited by altenbach on 10-31-2007 01:00 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SelectScilab.png ‏11 KB

  • Problem creating inputs, outputs and text in Scilab Script Block

    I have recently installed the Labview to Scilab Gateway.  I am running Labview 11.0 and Scilab 5.3.3.  The example files run properly, However, when I try to define any inputs, or outputs, there is no option to add the ports.  The block also ignores any text I type in it or copy to it.  I have been trying this on a blank vi.
    Solved!
    Go to Solution.

    Hi Ronny,
    I have a few more questions to help us debug this issue.  You said you tried the same right-click procedure to create inputs and outputs on a normal script block and it worked as expected.  What specifically do you mean by a "normal script block"?
    How did you drop the empty Scilab script node on a blank VI?  Did you drop it from a palette or paste it from another VI?
    Can you post an image of your Help >> About LabVIEW screen (feel free to obscure your name, company, and license number)?  If not, can you provide the LabVIEW version number specified from that screen?  There have been a few patches to LabVIEW 2011 and it will help us to reproduce the issue if we know exactly which version you have.  Also on that screen, do you have LabVIEW Base, Full, or Professional (or maybe an Evaluation or Student edition)?  The Scilab script node will not work in LabVIEW Base and the right-click menu will look as you describe.  You can verify your LabVIEW activation in the NI License Manager.
    Do you have any other versions of LabVIEW installed on your computer?  Is LabVIEW 2011 the most recent LabVIEW you installed?  How about previous versions of Scilab?  Do any previous versions remain or did you remove a previous version of Scilab AFTER installing Scilab 5.3.3?
    Grant M.
    Senior Software Engineer | LabVIEW Tablets | National Instruments

  • SCILAB LabVIEW Gateway

    For those who do numerical computations, a new free tool has been released about a week ago.
    If you are familiar with SCILAB (The open source platform for numerical computation) you might be pleasantly surprised that a Scilab_LabVIEW_Gateway is now available.
    There is also a Developer Zone article: Connecting LabVIEW with INRIA Scilab 
    Has anyone tried it yet?
    LabVIEW Champion . Do more with less code and in less time .

    Funny story how I run across this...
    Years ago, I had installed scilab (3.0?) on a desktop, played around a bit, then forgot it. (We were forced to buy matlab to run some software from another lab). Yesterday I was at that computer, noticed the scilab icon and vaguely remembered what it was. To see if there is a newer version, I went to the scilab site and the word LabVIEW was smiling right at me.
    What a coincidence.!
    I don't typically use script nodes, but I think it is great to have this alternative. It could be useful for some heavy linear algebra stuff. How is the speed compared to e.g. matlab and mathscript nodes and compare to pure G?
    Do you know if it works in built applications if the target computer has scilab installed? (That's actually a relatively easy requirement, because scilab is free. )
    LabVIEW Champion . Do more with less code and in less time .

  • Using the SciLab LabVIEW gateway

    Has anyone had any success running commands through the SciLab Scripting Node that are avaialble through an installed module in SciLab?  I am trying to run a command (emd) that is available through the EMD ToolBox, but am getting an error (Error 1050 occurred at LabVIEW:  Error occurred while executing script. Error message from server: . in Untitled 3) that doesn't really provide much insight as to what is wrong. Essentially, the input (in) is a 1D array of reals, the output (out) is a 2D array of reals and the code in the node is out = emd(in).  This works when I am in SciLab, but fails when using the SciLab scripting node.  I am able to run other simple scripts using the SciLab scripting node (for example, if I use out = sin( 10 * in), I get a 1D array of reals that is what it should be), so I do not think that this is an issue with the Scripting node.  I can't find much in the way of documentation, so any help would be greatly appreciated.
    I am running SciLab 5.4.0, with the EMD Toolbox installed (installed using ATOMS), LabVIEW 2010 and the current version of the SciLab LabVIEW gateway that is available on the NI website.

    Hi,
    A colleague of mine has some good suggestions on this matter on the following thread:
    http://forums.ni.com/t5/LabVIEW/Scilab-Script-in-L​abview/td-p/748167
    Please let us know if this helps.
    Daniel G.
    Applications Engineer
    National Instruments
    http://www.ni.com/support
    Daniel G.
    Applications Engineer
    National Instruments

  • Problems starting scilab gui

    Hallo
    i installed scilab from AUR (scilab 5.0.3-4)
    i keep getting this massege when i try to start scilab
    Error occurred during initialization of VM
    /usr/bin/scilab: line 453: 25375 Speicherzugriffsfehler "$SCILABBIN" "$@"
    Speicherzugriffsfehler is german for segmentation fault
    i think it has to do with java VM but i seem not to find out what and where
    in debug modus i get first this
    [New Thread 0xb53e96d0 (LWP 24081)]
    Error occurred during initialization of VM
    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0xb53e96d0 (LWP 24081)]
    0x06377df7 in java_lang_Throwable::print ()
       from /opt/java/jre/lib/i386/server/libjvm.so
    (gdb) c
    Continuing.
    Program received signal SIGSEGV, Segmentation fault.
    0x06507bf3 in JVM_handle_linux_signal ()
       from /opt/java/jre/lib/i386/server/libjvm.so
    (gdb) c
    Continuing.
    Program terminated with signal SIGSEGV, Segmentation fault.
    The program no longer exists.
    has anybody got an idea
    thank you for your help in advance

    Same problem here on x86.
    Error occurred during initialization of VM
    /usr/bin/scilab: line 453: 10269 Segmentation fault      "$SCILABBIN" "$@"
    I have reinstalled scilab and its dependencies after removing .Scilab folder from home, but problem persists.
    Launching directly /usr/bin/scilab-bin:  error while loading shared libraries: libjava.so: cannot open shared object file: No such file or directory.
    ldd /usr/bin/scilab-bin gives
            libjava.so => not found
        libverify.so => not found
        libjvm.so => not found
        libhpi.so => not found
    These libraries are in the /opt/java/jre/lib/i386/ folder or subfolder on my pc. However "echo $PATH" gives:
    /bin:/usr/bin:/sbin:/usr/sbin:/opt/java/jre/lib/i386:/opt/java/jre/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core
    Hope it helps. Since I don't know if the problem is "upstream" or not, I've not yet opened a bug report...

  • LabVIEW et logiciels statistiques (R, Scilab, Matlab, ...)

    Bonjour,
    Nous avons développé des applications mêlant des acquisitions et des calculs statistiques. Les acquisitions et les calculs sont pseudo-temps réel (acquisition/analyse/sauvegarde/affichage en moins d'une seconde).
    Jusqu'à présent, nous passons par une DLL C mais nous aimerions utiliser un logiciel "stat" pour simplifier nos futurs travaux.
    Nous avons entendu parlé du logiciel R. Est-ce possible de lancer un script sous R via LabVIEW et de récupérer les résultats des calculs dans l'appli LabVIEW?
    Si oui, comment et est-ce assez rapide?
    Sinon, avez-vous déjà utilisé Scilab et/ou MatLAB? Qu'en pensez-vous?
    Merci pour votre aide.

    Bonjour,
    Merci pour cette réponse.
    Nous n'aimons pas trop ActiveX car il est un peu trop "Microsoft dépendant". Nous avons eu déjà des problèmes avec une de nos applis en changeant de Word (par exemple): le service informatique ne demande pas notre accord pour installer telles ou telles mises à jour sur un poste...
    Pour le script (Matlab, Scilab), nous avons effectivement vu ces techniques mais cela ne convient pas à l'usage que nous voulons en faire, à savoir:
    - nous recherchons puis validons un protocole statistique avec un logiciel "spécialisé" et plus adapté
    - nous intégrons ces calculs statistiques dans notre appli LabVIEW en minimisant leur requalification.
    En important un script dans un code LabVIEW, rien ne garantit que personne n'a touché par mégarde au code Matlab/Scilab donc nous sommes obligés de revalider les calculs statistiques une fois le programme LV terminé.
    Avec un code compilé, nous pouvons garantir que le code statistique, une fois validé, ne peut être modifié. D'autre part, cela nous permettrait de corriger/modifier éventuellement les calculs sans avoir à requalifier toute l'appli.
    Nous voulons bien "séparer" les 2 parties pour:
    1 - minimiser les étapes de qualification
    2 - simplifier les mises à jour
    Nous cherchons donc un logiciel statistique qui puisse générer un code compilé ou utiliser un protocole de com compatible avec LabVIEW. Nous connaissons bien LabVIEW et ses possibilités mais au niveau logiciel mathématique compatible, nous n'y connaissons rien.
    Des statisticiens nous ont parlé de R mais n'étant pas des programmateurs ni des experts R, ils ne pouvaient pas nous dire s'il pouvait générer des codes compilés et/ou "dialoguer" avec LabVIEW.
    Matlab pourrait, nous a-t-on dit, générer des DLL/EXE mais de là à pouvoir les exploiter sous LabVIEW, nous n'en savons rien.
    Nous continuons à chercher. Encore merci.

  • Scilab Script in Labview

    I am trying to invoke a Scilab (v4.1.2) script in an empty Labview (v8.5.1) VI, and am continually receiving an error simply telling me that an error occurred while running the script. The script works in scilab alone. I've commented out the 'd' input in the script to try and have labview control it just as my first attempt at an interface between these two programs.
    Can anyone see where I am going wrong, or possibly how I could figure errors like this out on my own? It just doesn't point me in any direction to find the error, so I'm stuck.
    Thanks
    Attachments:
    Scilab_labview.zip ‏7 KB

    Hello,
    I see some problems when running the script as well.  It seems there are some slight problems communicating with the Scilab software.
    First, when looking at the text in the Scilab script node, I see an extra character before the new line.  Upon closer investigation, the script contains both a carriage return and a line feed at the end of every line.  This currently causes a problem with the Scilab software.  I was able to eliminate the extra character (the CR) by loading the script from disk in a text editor and copying and pasting it into the script node.
    Second, getcwd may not return what you expect.  It is not the directory in which the VI resides (unless you happened to put the VI in Scilab's default working directory).  You can find out what it returns by simply calling that function and then creating a string output variable on the script node.  Another method to specify the location of your data file is to pass in a string that is the current VI's location on disk.  You can find this using the Programming >> File I/O >> File Constants >> Current VI's Path primitive.  Simply use the Strip Path primitive to get the directory name.  Wire that into the script node as a string input and then append the filename like you currently do.
    Third, comments in the script seem to cause some problems.  The script node doesn't actually return an error, but most of the script simply doesn't execute.  Try removing all your comments from the script.
    Last, the Scilab-LabVIEW Gateway currently does not support plotting from the Scilab software, so your plot commands will not work.
    Grant M.
    Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments

  • Error 1046 scilab

    I have:
    Scilab 5.4.0 (64 bit)
    Labview 2012 (64 bit)
    Labview Scilab Gateway (64 bit)
    Why shouldn't the scilab script work?
    I get error 1046.
    I tried dropping a matlab script and changing server like suggested in a post.
    Thanks..
    Solved!
    Go to Solution.

    Hello kikki,
    There are two potential problems:
    1) We recently discovered a compatibility issue with the LabVIEW to Scilab Gateway and Scilab 5.4.0. A fix should be available very soon.
    2) This relates to your question about where LabVIEW looks for the server. LabVIEW will query the registry to determine where Scilab is installed. This is done from the HKEY_LOCAL_MACHINE\SOFTWARE\Scilab folder by querying the value of the LASTINSTALL key. It will then look in the folder specified by that key for the SCIPATH value. Unfortunately, when you install a newer version of Scilab and then uninstall an older version, Scilab removes all registry keys relating to its existence -- even though a version is still installed. If you uninstalled an older version after installing Scilab 5.4, you will need to reinstall Scilab 5.4.
    Even after potentially addressing issue 2, you will still need an updated LabVIEW to Scilab Gateway. I will post here when it is available.
    Grant M.
    Senior Software Engineer | LabVIEW Tablets | National Instruments

  • Scilab crashes when trying to display a graph

    Hi,
    I'm trying to use Scilab. I installed it via AUR with JOGL :
    https://aur.archlinux.org/packages/scilab/
    https://aur.archlinux.org/packages/jogl/
    I can launch the software, but as soon as I try a "plot" command, it crashes and I got the following stacktrace in my terminal : http://pastebin.archlinux.fr/473772
    Does someone know what I can do to fix that ?
    Thanks
    EDIT: I also tryed to instal JOGL 2.1.2 instead of the AUR version,  2.0.2, it stills crash with a similar error.
    Last edited by filippo (2013-11-07 20:49:54)

    i've got the same problem as filippo.
    as soon as i try to plot something scilab crashes with this terminal output.
    i tried fixing this on my own, but sadly had no luck
    it would be great if someone could help, i need xcos for my studies...
    if you need more information about my setup, just ask.
    cya

Maybe you are looking for