07-18-2014 01:15 AM
I am trying to invoke an application exe built using Labview from python.
I am able to invoke labview vi, send and receive data. But if I change the vi to exe, it doesn’t work.
07-18-2014 01:21 AM
You can use the "os.startfile("<Exe path>")" to launch any executable from python (Not actually a LabVIEW question though 🙂 ).
07-18-2014 01:23 AM
Am able to launch exe. But the problem is I want to send data to that application exe and read back the data from it.
07-18-2014 01:47 AM
07-18-2014 01:51 AM
This is more of Python. I can suggest you another way, if you can do those changes to your existing code.
This is what I do: If I have to communicate between 2 different platforms I use "File" as a communication medium (Simple method). So if you want to pass data to the LabVIEW code from python, write the data to the file from Python and read the data in LabVIEW and vice versa. I generally use *.ini files for this purpose.
07-18-2014 01:51 AM
By accessing vi from Python script am able to pass and read data from vi.
If I build exe to accept command line arguments, I can send data to the Labview exe but cant read data back from it.
07-18-2014 01:54 AM
Ya. I can do this.
But am checking to see is there a way to directly pass data and read data from exe.
Because sending and receiving data from Python to vi is possible.
07-18-2014 01:58 AM
07-18-2014 01:59 AM
Return values means I want to read back the values from exe. For example using functions like getControlValue()
07-18-2014 02:10 AM