Search code examples
python-3.xactivexlabview

Launch Labview program through Python


I am working on a project in which I have to launch a VI (Labview program) through my GUI written in python. I have not the administrator rights so I installed PyCharm Community with the JetBrain Toolbox and Python 3.3 with an MSI file.

I read on the internet that to do what I want, I need to install the pywin32 extension: extension -link, but when I launch it, it doesn't find my Python installation.

So, my question is: is there another way to control VI from python?

Thank you in advance for your answer. I am a beginner in both languages.


Solution

    • If you want to run a plain VI, you have to run the LabVIEW IDE -- a VI is a source code file, not a built executable, so to run directly, it has to be hosted in the editor.
    • If you want to run a VI built into an executable, you obviously have to run that built EXE.

    So, either way, you're going to have to be able to launch an EXE.

    Can your Python invoke C-style DLLs? If so, you could build your VI into a DLL and then call the VI that way.