07-26-2022 09:58 AM
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,
07-29-2022 02:31 AM
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
08-29-2022 03:24 AM
Hello,
No I don't.
Have you an example please ?
thank you in advance