08-13-2021 06:40 AM
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?
08-15-2021 09:05 PM - edited 08-15-2021 09:06 PM
When I set the cluster value of the array through labview, I get its value through the getcontrolvalue method.(('23',), ('dfs',), ('dsa',), ('xvxc',)),
I copied this value into the setcontrolvalue method, but got an empty array.
Through my test, [["23gdfs",], ['dfs',], ['dsvbcvxcva',], ['xvxafdsac'],('cxz')] is work, however,the last element must be a tuple and the last element is lost