[python-win32] How to send an array of clusters to labview??
john taylor
x12345jp at yahoo.com.hk
Tue Jun 28 11:30:07 CEST 2005
hi all,
i am using win32com to call labview from python over
COM and i am using early-bounding.
i want to set the value of a control element "array of
cluster" in a VI, and the control in the VI is an
array of clusters, which has the structure (integer,
integer, string).
CODE:
...
>>> paramNames = ["array of cluster"]
>>> paramVals = [(2,3,"hello"), (4,5,"world")]
>>> vi.Call(paramNames, paramVals)
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "labview.py", line 149, in Call
, paramVals)
File
"C:\Python24\Lib\site-packages\win32com\client\__init__.py",
line 446, in _ApplyTypes_
return self._get_good_object_(
com_error: (-2147352567, 'Ausnahmefehler
aufgetreten.', (5002, 'LabVIEW', 'LabVIEW : paramVals
Typenfehlanpassung. 1D-Array aus Variants wird
erwartet.', None, 0, 0), None)
it says, 1D-Array of Variants is expected.
i've succeeded in sending 1d and 2d arrays, or a
cluster. the only problem is to send an array of
clusters (elements of different types).
anybody with experience in python/com/labview has
idea?? thanks a lot in advance?
cheers,
john
More information about the Python-win32
mailing list