LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting string input from user

My program needs to get a string input from the user. I have an input on the interface to type this string, but right now it only seems to recognize the string if it is typed in before the program is started. How would I do it so the user enters the string while the program is running?

Thanks.
0 Kudos
Message 1 of 5
(5,285 Views)
Can you post your code?
0 Kudos
Message 2 of 5
(5,284 Views)
Hello, my first guess is, that you didn't det the properties of the string control to "read string while typing" (I don't know the exact phrase because my LV is german) Also you should use the event-structure to capture user inputs. Regards, balze
0 Kudos
Message 3 of 5
(5,270 Views)
The property you're referring to is "Update Value While Typing", but I doubt that's the problem here. It sounds like a the string value is tunneled into a loop, and then sent right back out again, under the assumption that the new value will come out of the loop. That is not the case, of course, because all that you will get is the original value of the string, since that's what the loop saw:

Note: Rather than roll your own, you may want to just use the "Prompt User" Express VIs, found in the Dialog palette.

To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.


Message Edited by smercurio_fc on 04-25-2008 01:18 PM
Message 4 of 5
(5,254 Views)
Thanks, I see my error now. I did have it outside of the loop.
0 Kudos
Message 5 of 5
(5,231 Views)