12-05-2011 12:25 PM
Hi, I need to add a TestStand UI button control to labview OI. Pressing the button, it should generate an event into the main event loop.
I cannot generate the event from a TestStand ui button control.
Thanks a lot
12-06-2011 02:53 AM
HI logatto,
You should try this method: Create a LV button, then in the event, wire the TS UI button reference to a DoClick Method.
Hope this helps
12-06-2011 03:53 AM
Hi, I use dthe DoClick method but this is to generate a click programmately. The user must generate the asyncronous event, but I cannot connet it to the event structure.
Thanks
12-06-2011 03:28 PM
Hi,
If you want to handle the button click with the event structure, I would recommend using a LabVIEW system button control rather than the TestStand button. The TestStand buttons are better when used with a manager control using a connect method (see the simple OI example that ships with TestStand to see this implemented - <TestStand>\UserInterfaces\Simple\LabVIEW\TestExec.llb).
12-09-2011 02:15 AM
Yes I know, the probles is that the style is different. If there is no solutiono will repalce all the TestStand buttons with Labview buttons.
Thanks.
12-09-2011 03:36 AM
You should, as Al already suggested, use a LabVIEW Button Control from the system palette, not the modern palette. The buttons in the system palette will look like the TS ActiveX button controls.
If the button should be used to interact with TestStand, i would never use a LV button for this. You would overly complicate the code because of this but getting nothing out of this.....
hope this helps,
Norbert