Hi
Is it possible to update a labview.exe front panel from python?
I tried this:
import win32com.client
labview = win32com.client.Dispatch("Labview.Application")
VI = labview.getvireference(r'
python.vi')
VI.setcontrolvalue('Numerisch','5')
and it works fine. But when i replaced the python.vi trough a compiled
python.exe i get this errormessage:
I tried this:
import win32com.client
labview = win32com.client.Dispatch("Labview.Application")
VI = labview.getvireference(r'
python.exe')
VI.setcontrolvalue('Numerisch','5')
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "<COMObject Labview.Application>", line 2, in getvireference
com_error: (-2147352567, 'Ausnahmefehler aufgetreten.', (5507, 'LabVIEW', 'LabVIEW :LabVIEW: Datei nicht gefunden. Die Datei wurde eventuell verschoben oder gel\xf6scht, oder der Dateipfad wurde bez\xfcglich Ihrer Plattform nicht korrekt formatiert. Beispiel: verwenden Sie \\ als Pfadseparator auf Windowsplattformen, : auf Macintosh u', None, 0, 0), None)
Is it possible to updating a labview exe front panal from python?
regards