10-02-2007 08:10 AM
10-02-2007 08:23 AM
A few of things you could do.
1. Have a dialog box pop that requests the user to enter the particular data. Once the dialog box is OK'd, the program writes the value from the dialog box into the control. (See One button dialog box on dialog and user interface palette.)
2. Put an OK or continue button on your front panel. Put the numeric control inside a loop. Wire the continue button to the stop terminal of that loop. (Make sure you put in a small wait statement as well in the loop so the loop doesn't spin too fast eating up all the CPU resources.) Now when the Continue button is OK, the loop will end and the value from the control will be passed out to the rest of the program.
3. You could also use the time delay functions if you want the program to pause for a specific amount of time.
10-02-2007 08:29 AM
10-02-2007 08:37 AM
10-02-2007 08:49 AM
Thanks for the quick reply but I was wondering if you could resend the LabVIEW program attachment in version 8.0 since I am not up to date on the latest LabVIEW version.
Thanks again!
Steve Coward
10-02-2007 09:22 AM
The okay button worked great for sequence frame 0. I would also like for the program to pause or wait for another okay or enter command or something before starting frame 1 (communication with the device).
You guys are a great help!
Steve
10-02-2007 09:27 AM - edited 10-02-2007 09:27 AM
Message Edited by GerdW on 10-02-2007 04:32 PM
10-04-2007 01:31 PM
Thanks GerdW and Ravens Fan for the help so far. I really appreciate it. I still have a few more things to figure out. The time stamp that you helped me with, I would like it to take the current reading whenever the sequence is in frame 5 and also I would like the time to be formated like 10/4/07 2:23:17 PM or something like that (military or whatever). And one of the very last things I would like to be able to do is like in sequence frame 0 when it stops to highlight or start blinking the Polarizer # numeric control indicator box for the user to know that it is time to choose a new number to input. Also, when sequence frame 4 when it stops the second time, I would like the user to know that and to start blinking the okay? 2 button. I hope I am making sense in these questions.
Thanks,
Steve
10-05-2007 02:32 AM
10-05-2007 09:08 AM
What if I wanted to display on the front panel in real time the values from Polarizer #, P1, P2 and the last calculated value (P2/P1 * 100) called T% in a table or something like that. What would I have to do? Or it could just be Polarizer # and T% at the least. I just want to let the user know the values in a list, spreadsheet or table as they go. I think the very last thing would be able to stop the program at any point in time instead of at the end like I have it. The problem with what I have is that the stop button will be pressed and then an additional loop will go on afterwards. I want the program to end as soon as the stop button is pressed no matter what sequence it is.
Steve