LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Executing LabVIEW VIs from PERL script

    Hi,
    How to run labview VIs using scripts like PERL.I can open the VI using my script.
     For example
    system("C:\\Program Files\\National Instruments\\LabVIEW 8.5\\LabVIEW","D:\\src\\Example.vi");
    The code above just opens the VI .
    How to set the 'run' parameter if I want to write a C program that should run LabVIEW.exe first and load Example.Vi and run it..???
    Thanks in advance..
    Sharon
0 Kudos
Message 1 of 5
(3,738 Views)

In the VI properties set the VI to "Run when opened". Alternately you could build the VI into an executable that would run when launched.You could also use LV's ActiveX interface to open and run a VI (LV ships with an example that shows how to do this from Excel using VBA.).

 

Mike...

Message Edited by mikeporter on 02-06-2009 11:10 PM

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 5
(3,716 Views)

If I set 'Run when opened' -I cannot input the values..right? Anyway I will try what you have said and also the ActiveX part.

Thanks Mike.

 

One more question..through command line ,for example if I have 3 input items and one output, what should I do to enter/read the output value?

It is like enter input and print the output but using command line...

  

 

Thanks in advance..!!!

Message Edited by sivamit2002 on 02-06-2009 10:59 PM
0 Kudos
Message 3 of 5
(3,710 Views)

sivamit2002 wrote:

If I set 'Run when opened' -I cannot input the values..right? Anyway I will try what you have said and also the ActiveX part.

Thanks Mike.


Depends on how you write your code. You can have a program that is running, but all it's doing is sitting in a loop waiting for the operator to enter in some data and press a start button.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 5
(3,691 Views)

Hi Sharon ,

   Does that resolve your issue now ?

Does Mike suggestions solves the query ? IF yes please mark it as solution for others to refer.
Thanks

Pranchal

0 Kudos
Message 5 of 5
(3,651 Views)