11-17-2009 05:32 PM
I have a VI in which a user will be running a test and entering a serial number for each run. This involves a text control for the serial number, and a button to start the test. What I want to have happen is for the user to enter the serial number and then hit Enter, which would run the test and then place the cursor back in the serial number field for the next test. I'm not sure how to go about doing this, however. I tried setting the focus field in the button's key navigation to Return, but this requires the user to hit Enter twice and then place the cursor back in the serial number field. I tried setting the toggle field on the button and the focus field on the text control to Return as well, and this did do as I expected but only the first time around - when the cursor returned to the serial number field this action would not repeat when a new number was entered.
It seems like there should be an easier way to do this, but I'm not quite sure. I'll try to get an example of what I'm trying to do uploaded, but at the moment the rest of the VI is a bit of a mess and I would like to extract just the relevant parts.
Thanks for any input.
Solved! Go to Solution.
11-17-2009 06:16 PM
Here is an example with an event structure. The boolean is set up to toggle when Return is pressed, and the Serial # string is configured to update while typing. I just assumed you wanted the control erased in between tests, if not remove the two writes to the Value property (the first is just to make sure the value is read before it is blanked).
11-20-2009 07:08 AM
03-28-2015 10:06 PM
Thanks.
You Example, help me!!