NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to update listbox from an array ?

 
Hello,
I would like to update a listbox (CVI user interface) from TestStand FileGlobals array variable. I'm successfully using the function TS_ExchangePropertyAndCtrlVals for other user interface controls, but I guess I have a problem when trying to get values from an array to listbox. Does this function support listbox control ? If not, how I could update an array to listbox ? Or, is there any other way to handle an TestStand array in CVI operator interface ? I would not like to use an ActiveX control for now.
Regards,
Petri
 
0 Kudos
Message 1 of 3
(3,041 Views)

Hi,

Have a look at the examples in TestStand relating to Arrays.

If you have TestStand 2.x and below you will have to use the GetVal method, see examples.

If you have TestStand 3 and above, then just pass the array as a parameter to your dll function that you call from TestStand.

Hope this helps

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,028 Views)

Thanks Ray,

I probably wrote unclearly my question. Actually I don't have any problem to use a dll from TestStand including transferring array contents to dll, and I have no problems to update CVI user interface except the list box. I was wondering if there is a simple way to update a list box  from an array, similar to the function TS_ExchangePropertyAndCtrlVals using the PropertyMap, or is the only way to do the job as described in the examples you mentioned. 

I'm using TS v3.5.

Regards,

Petri

0 Kudos
Message 3 of 3
(3,017 Views)