Dear all,

Please set aside my last mail, when I asked about 'getvireference', I 
reinstalled python and somehow that solved the problem. Now I can connect to 
the running .VI file and read out it's value? with the following simple snippet:


labview = win32com.client.Dispatch("Labview.Application")
VI = labview.getvireference(r'path_to_my.vi')

 while True:
     print(VI.getcontrolvalue('power')

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 would deeply appreciate if someone could help me with that!

Regards,

Zsolt Kálózi

________________________________

A jelen email útján megküldött vélemény vagy információ kizárólag a küldő 
személyéhez kapcsolódik és nem feltétlenül jeleníti meg az ELI-HU Nonprofit 
Kft. álláspontját is. Társaságunk nem vállal felelősséget az email tartalmáért, 
ide értve különösen, de nem kizárólagosan kötelezettségvállalást jogi kötő 
erővel bíró szerződések létrehozásáért, módosításáért vagy megszűntetéséért, 
valamint az átadott információ alapján indult eljárásokért mindaddig, amíg az 
adott információt utólag és írásban a megfelelően meghatalmazott vagy az ELI-HU 
Nonprofit Kft. képviseleti jogával felruházott személy meg nem erősíti. Az 
email bizalmas vagy jogilag védett információt tartalmazhat, amelyet kizárólag 
a címzett személy vagy szervezet, illetve az általuk felhatalmazottak 
használhatnak fel. Amennyiben Ön nem az üzenet címzettje, kérjük, értesítse 
erről az üzenet küldőjét és törölje az üzenetet rendszeréből. A jelen email 
tartalmának nem a címzett általi bármilyen formában történő illetéktelen 
közzététele, terjesztése, másolása, illetve felhasználása vagy alkalmazása 
szigorúan tilos és jogszabályba ütközhet.


Please note that any information or opinions presented in this email are solely 
those of the sender and do not necessarily represent those of ELI-HU Nonprofit 
Ltd. Our Company accepts no liability or responsibility for the content of this 
email, especially, but not limited to commitment for establishing, modifying or 
terminating legally binding contracts, or for the consequences of any actions 
taken on the basis of the information provided, unless that information is 
subsequently confirmed in writing by a person duly authorized or endowed with 
the right of representation of ELI-HU Nonprofit Ltd. This email may contain 
confidential or legally protected information, and is intended solely for the 
use of the individual or entity to whom it is addressed and others authorized 
to receive it. If you are not the intended recipient of this email, please 
inform the sender immediately and delete it from your system. Any unauthorized 
disclosure, dissemination, copying or use of or reliance upon the content of 
this email by anyone other than the intended recipient is strictly prohibited 
and may be unlawful.
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to