NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Add button to LV OI

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

0 Kudos
Message 1 of 6
(3,647 Views)

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

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 2 of 6
(3,630 Views)

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

0 Kudos
Message 3 of 6
(3,627 Views)

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).

Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 4 of 6
(3,612 Views)

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. 

0 Kudos
Message 5 of 6
(3,595 Views)

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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 6 of 6
(3,588 Views)