05-30-2007 11:14 AM
05-30-2007 11:21 AM
05-30-2007 11:33 AM
05-30-2007 11:35 AM
05-30-2007 11:50 AM - edited 05-30-2007 11:50 AM
Message Edited by ugman on 05-30-2007 11:52 AM
05-30-2007 12:18 PM
05-30-2007 12:33 PM
Your loop should have a timer inside so that the code doesn't use 100% CPU time. Also, you could put a loop around the whole code, then when you run the vi, it won't start until you click the front panel switch. Also, you can skip the inverter that feeds your case structure by just exchanging the True/False cases. See the attached code.
This would be better done if you would use an event structure. Capture the switch value change event. Put the message box in the event case. If the user presses cancel, you can just discard the value change. No need to write back to a local variable. Try it.
05-30-2007 12:38 PM