02-11-2009 09:20 PM
02-11-2009 09:33 PM
Is this a normal numeric control or a timestamp control you are working with?
Please post your VI so we can see what you are talking about.
02-11-2009 09:43 PM
How about this:
(The VI is in 8.2 and should work fine for you).
02-11-2009 10:11 PM
What exactly is your questin, how to structure the code, or how to create the popup window?
A better solution would be to not let the user press the run button if the time value is invalid. The simple way to do this is to test the time input every time its changed and set the run button's Disable property to 2 (disabled and grayed out) if the value is not correct. It's almost always better to disallow performing an invalid operation, rather than try and catch it after the fact.
Mike...
02-11-2009 10:31 PM
02-14-2009 07:22 PM
02-14-2009 09:36 PM
Hi all, attached is my vi. this vi when execute will automatically collected data based on the time duration set by user. few step i need to modify with it, but i no idea.
1. if possible, when the vi is execute, it will not automatically collected data. (i.e user have to selected time interval and press a start button)
2.when the user selected 0 hour 0 minute 0 second and click start, the message box "error time entered" is pop out, and user will return the the front panel again to selected the time interval.
3. during 0 hour 0 minute 0 second time interval, no data is collected and save to the lvm file (this is my recently main problem)
help...plz...
ravens fan: i hv post my vi. pls help me...
mattbradley: i hv follow the vi u attached. i only success to make the message box pop out when the user click the done button. however, even the message box is pop out, but data still continue collected to lvm file. and the message box cant be close by click the OK button (it continue keep pop out, i think because of my problem in 1.) besides, is it possible to set the message box will appear out immediately when user selected 0 hour 0 minute 0 second in the numeric control without click the done button?
mikeporter: yeah. it is something like you mention that i did. but sadly i no idea how to do it. mind help me with the attach vi? help...plz...
venky: thanks for your vi but i cant open it because i use labview 8.5 and your vi is in labview 8.6.
p/s: this vi need hardware for it to run. so it will be more difficult for your all to help me without the hardware. but i think with your all skill, no hardware also no problem to edit the vi. 🙂
02-14-2009 09:58 PM - edited 02-14-2009 10:02 PM
See attached.
02-15-2009 12:40 AM
ravens fan, thanks for your help. but have some problem when i running the vi u edit.
1. at first when user selected 00:00:00, it is ok because the message is pop out. however, when i select 00:00:01 can execute it, instead of every seconds save a data, the data was saved many many times in one seconds, as in the lvm file i attached.
2. user can selected running time at negative value, i.e: -00:00:05.
3. the temperature value just 0.7 for 0.8 for celcius (should be 28++) and for ferenheit just 32++ (should be 90++).
4. where is the GO! assistant? i cant find it in the block diagram but still this vi can be detected. (amazing!)
how to add in some of this thing:
1. add a pause button so the overall program will not be stop.
2. when the program is executed, the time selection control is disabled, and enable again when the program is pause
02-15-2009 03:29 AM