[Tutor] How to send an array of clusters from python to labview??

john taylor x12345jp at yahoo.com.hk
Mon Jun 27 15:44:14 CEST 2005


hi all, 

i am using win32com to call labview from python over
COM. 
i want to set the value of a control element in a VI
per SetControlValue(), and the control in the VI is an
array of cluster, which has the structure (integer,
integer, string).

CODE:
... 
>>> aoc = ((2,3,"hello"), (4,5,"world")) 
>>> vi.SetControlValue("array of cluster", aoc) 
Traceback (most recent call last): 
File "<interactive input>", line 1, in ? 
File "<COMObject <unknown>>", line 2, in
setcontrolvalue 
com_error: (-2147352567, 'Ausnahmefehler
aufgetreten.', (0, None, None, None, 0, -2147352571),
2) 

anybody with experience in python/com/labview has
idea?? thanks a lot in advance?

cheers,
john


More information about the Tutor mailing list