LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview in Batch mode

Hello,

I would like to start a LabView-application in batch-mode, for example from a Python-script. How does this work?
Thanks for your help.

Kind regards,

Gerald

0 Kudos
Message 1 of 8
(3,812 Views)
What operating system? Makes a big difference.

This seems to be more of a Python question than a LabVIEW question. In other words, the question "How do I start an executable from Python?" would be a more generic question and still apply, since LabVIEW is just an executable. Even if you're building your own application the question is still the same. Or, are you talking about starting a specific VI with LabVIEW? Still, I'd say the answer lies with the Python documentation.
0 Kudos
Message 2 of 8
(3,803 Views)
Thanks for your answer.
Yes, it will finally a VI that I want to start. I am not sure yet if I will use Python to start the VI or something else. I think it is possible to build an executable out of an VI and that it would be the best way to start the executable from another programme. What do you think of it?

Regards, Gerald

0 Kudos
Message 3 of 8
(3,795 Views)
If you just want to run LabVIEW and have it load a VI then you just need to issue a command line command like the following:
  C:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe pathtomyVI\myVI.vi
This will launch LabVIEW and automatically load "myVI.vi". It's the same as double-clicking the file in Explorer.

To create an executable of your VI you need the Application Builder. It is distributed with the "Professional" edition of LabVIEW. For other editions you need to buy it. The computer where you intend to run your built application will require the LabVIEW Run-Time Engine, but that's free. You can choose to bundle it when you build the application, or provide it as a separate install.

As for doing this from another application, well that all depends on the other application. As I said, for Python, you need to check the Python documentation on how to call an executable.
0 Kudos
Message 4 of 8
(3,778 Views)
Hello,

to start the VI from the command line is working. Is it also possible to immediately execute the VI?
I didn't find this in LabView-help.

Gerald

0 Kudos
Message 5 of 8
(3,763 Views)
That wouldn't be in the LabVIEW help since it's an operating system function. As I indicated in my last post, on Windows the syntax is:

    command  argument

so, at the command prompt you would type:

    C:\Program Files\National Instruments\LabVIEW 8.2\LabVIEW.exe   pathtomyVI\myVI.vi

Substitute as necessary.
0 Kudos
Message 6 of 8
(3,751 Views)

I think what he is asking to do is to have the VI run when opened.

This is a setting in VI Properties>Execution.

0 Kudos
Message 7 of 8
(3,748 Views)
Ya' right. Misread the post. Thank you for correcting me, Dennis.
0 Kudos
Message 8 of 8
(3,744 Views)