LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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
 
Download All
0 Kudos
Message 1 of 2
(3,650 Views)
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
0 Kudos
Message 2 of 2
(3,627 Views)