[python-win32] How to send an array of clusters to labview??
x12345jp at yahoo.com.hk
Tue Jun 28 11:30:07 CEST 2005
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,
>>> 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
line 446, in _ApplyTypes_
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?
More information about the Python-win32