LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send an array of clusters from python to labview??

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).
aoc = ((2,3,"hello"), (4,5,"world"))
vi.SetControlValue("array of cluster", aoc)
However,i get a empty result,anybody with experience in python/com/labview has idea?? thanks a lot in advance?
0 Kudos
Message 1 of 2
(1,307 Views)

When I set the cluster value of the array through labview, I get its value through the getcontrolvalue method.(('23',), ('dfs',), ('dsa',), ('xvxc',)),

K@]V4UO{_NA6%~IH]Q}}%{H.png

I copied this value into the setcontrolvalue method, but got an empty array.

 

}D[NW)T1RU)_T28]P]}C7_W.png

Through my test, [["23gdfs",], ['dfs',], ['dsvbcvxcva',], ['xvxafdsac'],('cxz')] is work, however,the last element must be a tuple and the last element is lost

K`3}C]CM54GZ%W0Y[)GIDN9.png

 

Download All
0 Kudos
Message 2 of 2
(1,253 Views)