LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to automatically skip to next string control after filling the first one?

Solved!
Go to solution

Say you fill in a string control with whatever data, and then there is a second string control that you would like to fill in with other data. Between the two strings, is there a programmatic way of skipping to the next string after filling the first automatically?

 

(You know, kind of like when you fill out billing information on a website, and the cursor automatically goes to the next input field so you can continuously keep typing.)

 

1. Fill in first string control.

2. Labview automatically places the cursor in the second string so you can start typing.

3. You start typing in the second string.

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

Hi Orta,

 

two ways:

1. Set a tabbing order for your front panel: now the user can change from control to control using the TAB key…

2. Use an event structure to wait for value change events of your string control(s): when an event occurs you can set the keyfocus for the next string control…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(3,424 Views)

It could be done.  The first question to ask yourself is "How do you want to set an "order" on the String Controls", i.e. given a bunch of Controls on the Front Panel, which is supposed to be "first", "second", etc.?  [One possible way would be to put them in a Cluster ...].

 

The next question is "What determines that the String has been "filled"?  One possibility is to make it a single-line String, so a <CR> ends it.

 

Now you can set up an Event Loop triggered by Value Changed for String Control 1, and get it to set the Focus to String Control 2 (and so on).

 

Bob Schor

0 Kudos
Message 3 of 6
(3,423 Views)
Solution
Accepted by ShogunOrta

Example.png

Have a deeper look into the Logic. 

0 Kudos
Message 4 of 6
(3,420 Views)

Okay, this is great! Thanks.

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

Thank you, this helped.

0 Kudos
Message 6 of 6
(2,664 Views)