[python-win32] win32com problem with LabVIEW

Kuner Martin martin.kuner at thomson.net
Fri Jun 24 10:31:47 CEST 2005


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


More information about the Python-win32 mailing list