LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

choose a menu item in the uir

Hi, i have created a uir with menu options the thing is when i click one menu- there should be a popup with toggle(checkbox) options that ones i check one box i will execute another command. he popup box should have 9 checkbox with a command button of OK and cancel. The code I've made works to test all those 9 items. but i want to include a popup+checkbox option to test say only 2 or 4of those nine items when i choose 1 opton from the menu of the main panel. like in the attached uir when i click on the menu\repeat-->>>the popup REPEAT should be in front an i will choose a check box on whick test will be performed. I will do the code for the test execution only i cant call that popup with check box option
how can i do it? Please help..
________________________________________________________________
Electronics Manufacturing Tester Forum
0 Kudos
Message 1 of 2
(2,955 Views)
Let's see if this solution can meet your needs.

You could add some more options to your menu bar, let's say "All" and "Selected" items within both Test e Repeat items. The callback for "All" items will run your tests as you're already doing. The callback for "Selected" items will show the popup for the operator to select the desired tests and run them.

I'm attaching a modified UIR with this solution.
The callback for Ok button will detect the state of checkboxes (GetCtrlVal...) and pass it to the testing routines.

It's not necessary to maintain the popup panel once the status of checkboxes have been read, so you can DiscarPanel before starting the tests (the testing routines will have thei own panel, I suppose...).

Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,955 Views)