01-14-2010 01:56 PM
Here is a countdown counter I am using with control buttons to simulate inputs. This will be used as part of a main program.
The way I will use this code will be to set the time to fault in the TIME IN MINUTES in the Front Panel Numeric Control. I will feed a temperature from a thermocouple into the PAUSE button (Block Diagram) and when the correct set temperature is reached the countdown counter will PAUSE prior to DISPLAY FAULT and signalling the PLC to stop test. I will use DISPLAY FAULT to output a Fault or signal that the temperature was not reached and Time Remaining went to zero and to shutdown or stop the main program. This input will be fed to a PLC to terminate the test and do an ordered shutdown of the UUT.
I have gotten this VI to function pretty much as I want but when the PAUSE button is pressed I do not want the DISPLAY to FAULT, it should remaining RUNNING because the time has not been reached.
Please feel free to take this as far as you would like. I will be happy to see a way to have the PAUSE button not FAULT the program. Thanks for any help.
01-14-2010 03:39 PM