NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Get CVI UI control values into TS

Hello, 

 

I'm using a UI Panel on CVI to define few limit values. Then in the same application I load and execute a TestStand sequence. 

In the beginning of the sequence, I load many values to set Global Variables and Parameters. I'm using the TS API functions. 

 

Then, when I try to set few parameters in the same way, but the data to get is coming from UI controls (GetCtrlVal for example), I have an error... saying that the Panel Handle is not valid. I checked that, and all my UI panels handle are equal to zero when calling the function from TS. It is not the case when I call this type of function directly in CVI. 

 

So my question is as simple as that : How can I simply initialize a TS variable from an UI control in the CVI panel ?

An example would be better if possible. 

 

Thank you in advance,

0 Kudos
Message 1 of 3
(842 Views)

Hi HAZAIEZ

 

Do you have a CVI call within your TestStand Sequence that calls LoadPanel?  LoadPanel returns a panel handle that you would need to access control values on the panel.

 

Regards

 

Steve

0 Kudos
Message 2 of 3
(809 Views)

Hello, 

 

No I don't.

Have you an example please ?

 

thank you in advance

0 Kudos
Message 3 of 3
(781 Views)