Unfortunatelly it’s forbidden to modify the LabView application, I cannot remove or add any new element to it. Therefore I cannot use your binding solution here. I must reach the .vi file “from the top”, by opening the whole file (like in the solution mentioned above) but from Linux. Is there a solution to this? Or alternatively can you tell me about the structure of the .vi files, so maybe I could write a python solution to open the .vi and read/write its elements.
Any help or suggestion is appreciated that moves the case forward!
I take that you don’t just need to “open”. For that you could launch labview path/to/my.vi as a shell command. Probably you want to query the value of some FP indicator and change the value of some FP control.
If you can at least add a VI to your same application instance, you may get there by VI server methods. For instance you can augment your application with one VI which listens to incoming string commands on some UDP port, and changes accordingly the controls of some FP of some other VI in memory. Python would handle the UDP communication on its side. If it helps, I have this old snippet of mine lying around.
Thanks Enrico. This could be useful later, but for now win32com library is also working for me (first comment). win32com can open and modify elements on the .vi’s front panel from python without any modifications to the .vi file! The downside is that the usage is quite limited, and only available on windows.