LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple data entries while vi is running.Need way to jump to control that data is entered in without using mouse

I am writing a calibration program that requires me to enter data manualy and then jump to next entry without using the mouse. I tried the tabbing order but still have to press the tab button until it gets to the control box I need to enter the data in. I need a way to let the vi run and when data needs to be entered it jumps right to the control I need to enter the data to.
0 Kudos
Message 1 of 6
(2,776 Views)
I'm not entirely sure how you know how the data will be ready, but assuming it's some boolean change, or time lapse, or something that can be measured, use a case structure and a property node's key focus property.  When it's "ready", have it enter the case structure and set the key focus to whichever control you want.
0 Kudos
Message 2 of 6
(2,770 Views)
I am calibrating Fluke multimeters and input to the meter will have to be changed. That is my time lapse. Every measuremnt will have to be input manually and then setting will be changed for next entry. I am using controls and have found what you are talking about but still have not been able to get the key focus to pause or stop program so I can enter the data. Hope this helps.
0 Kudos
Message 3 of 6
(2,765 Views)
The key focus will not pause or stop the program, but only put the cursor in that particular control.  If I understand correctly, you want the program to hang until you're done inputting the data, but it's not stopping when you need to switch the inputs?

If this is the case, what is the purpose of having it run that way?  Why not have it pause with a message box, and when the user clicks "okay" to having switched the inputs of the meter, it sets the key focus on the control you want, and then enter the data.

The only way I know how to wait until you're done typing before the program runs again, would be to have an event structure for that control on keypress, and you can use the event data node to capture which key was pressed, and on say "enter", the program continues...

I could have completely misunderstood your problem however...


Message Edited by Novatron on 07-19-2005 11:01 AM

0 Kudos
Message 4 of 6
(2,762 Views)
Sorry for misunderstanding. The meters will give me a value then I will have to input the data while program is in hang mode or pause mode. Then the program will set up new test parameters and then same process. I have got some where now with the first info you gave me. I put the key focus in a while loop and paused the program so data could be entered and then used boolean tied to return button to continue program. I thank you for the help.
0 Kudos
Message 5 of 6
(2,759 Views)
If you need any further help, just keep posting!
0 Kudos
Message 6 of 6
(2,752 Views)