08-02-2006 06:07 PM
08-02-2006 06:21 PM - edited 08-02-2006 06:21 PM
Don't use Prompt User for Input. Instead see the code below. The focus is set on the string control so that when you run it, the cursor will appear inside the string control. You enter in some text, then press the Enter key. This stops the while loop and the program is done. You must set the Key Navigation of the OK button to the Enter key for this to happen. Also, your barcode scanner must be programmed to send a newline character (carraige return and line feed) after scanning. This will trigger the OK button just as if someone pressed the Enter key.
Message Edited by tbob on 08-02-2006 05:22 PM
11-28-2007 08:54 AM
Like BCrabbit I'm also trying to minimise unser interaction as much as possible. What I'm trying to do, is just display some messages to the user
examples: 1)Place the unit on the board
2) Slide the pot to 70
3) Turn the main power on
So on and so forth. I don't want the user to hit any ok button as well and nor do they have to enter any data. How can I accomplish this.
Because the vi you have attached needs a string input (whihc I'm guessing is from the user).
11-28-2007 09:04 AM
this post is 1.5 year old.
your question doesnt seem directly related. also i dont understand what you exactly want to do. is it just to show slides, like a ppt presentation with timing?
if yes, check this thread will show you how to open subvis that will close automatically.
11-28-2007 09:09 AM
11-28-2007 09:30 AM
11-28-2007 09:51 AM
When confronted by the same sort of idiotic request from management, I arranged a demonstration for my management and the management of the end users. While talking, the pop-up came and went with any action being taken. This resulted in a false failure and the necessity to start the test over from the beginning. Production people really dislike false failures and having to redo something. I was then told to add an OK button to the pop-up.
In any case, to have a timed pop-up is pretty simple with an Elapsed Time function wired to a while loop's conditional terminal. What will help is also setting the background color or something else to blink. If there is a sound card, you could also generate some obnoxious tone.
05-14-2010 03:58 AM
smm wrote:
I'm aware of what you're saying but I do want the user to see the messages without the buttons. Have to minimize the user interaction. The boss wants it like that. Can't do much
There is no strict need to have a time limit on the OK button. The extra carraige return or line feed character sent by the barcode reader at the end will be the OK button activation. So no extra user interaction but the activation of the barcode scanner itself.
Of course I would make the close cross in the right upper corner available to the user so they have a way to cancel that dialog anyhow if they decide for some reason that they need to abort that action.
05-14-2010 11:12 AM
Hey Rolf. You just responded to a message that is over 2 years old. I think the OP solved his problem by now.
We all do this now and then....
05-14-2010 03:44 PM