[python-win32] connecting to labview executable

Tim Roberts timr at probo.com
Sun May 12 02:28:38 EDT 2019


On May 9, 2019, at 11:50 PM, Kálózi Zsolt <Zsolt.Kalozi at eli-alps.hu> wrote:
> 
> So this continously reads out the value from the frontpanel of the .vi, that is called 'power'.
> Unfortunatelly this only works if the .VI is running in the LabView IDE. 
> That is okay for the test environment but not okay in the real environment.
>  
> I will have an .EXE file that was generated from the .VI, so I need to access that one. How can I do that with this library? Because simply changing the path to the executable path doesn't work.
> Under 'advanced' I also tried to enable and give a name to the ActiveX server, when I generate the executable, and give that name to the Dispatch, but that didn't work either.

I'm trying to interpret what you've said here.  Are you saying that the win32com.client.Dispatch statement only connects to LabView if your executable is already running?  If so, then all you should have to do is use os.spawn or subprocess.Popen to launch the executable.
— 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20190511/038bce1c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3870 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-win32/attachments/20190511/038bce1c/attachment-0001.bin>


More information about the python-win32 mailing list