02-17-2012 12:50 PM
When controling a VI through ActiveX, how is it possible to set the value of an array control ?
With numerical controls, I have no trouble: I just use SetControlValue and it works well:
vi.SetControlValue('y', 4) for instance.
However, when trying to do the same with an array, the value of the control becomes an empty array:
vi.SetControlValue('arr', [3 4 5]) for instance.
What is the right way to do this ?
Solved! Go to Solution.
02-18-2012 09:19 AM
Are you using ActiveX in some other programming language and want to change the array control?
Your notation isn't something I am familiar with.
02-18-2012 09:35 AM
02-21-2012 09:30 AM
Hi Calvin,
Have you tried passing the input as a string and converting it to an array? You may also want to try using a "matrix" control, rather than an array, as they are handled a bit differently.