I try to talk with Python to a LabVIEW-Application called "cbt" via ActiveX.
Now I´m running into problem calling the "Call" method.
Here´s the code:
------------
import win32com.client
oLv = win32com.client.Dispatch("cbt.Application")
strVi = oLv.ApplicationDirectory + "\\cbt.exe\\" + "cdcAxLogPrint.vi"
# retrieving the reference to the VI to be called via "Call"
oViLogPrint = oLv.GetVIReference(strVi,"",True)
arIn = ["strEntry","Error"]
arOut = ["Hello World",True]
oViLogPrint.Call(arIn,arOut)
------------
The resulting error message:
oViLogPrint.Call(arIn,arOut)
TypeError: 'NoneType' object is not callable
Does anyone has a glue ?
Martin
_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32