08-23-2007 04:04 PM
08-23-2007 06:58 PM
08-23-2007 08:03 PM - edited 08-23-2007 08:03 PM
Try this. Attached is a picture of an idea for how to execute the wait.
Put your commands to turn off the pump in a case structure. When the boolean goes true, the case structure executes. The first sequence of the frame will be a wait statement, once that completes the second frame for turning on or off the pump occurs. This way there is no wait in the normal running condition of the loop.
I didn't quite understand your description about what you want to happen in what order. When do you want the pump turned on (beginning of the program or when the fault occurs)? You want it to turn off 2 minutes after the fault. When do you want the pump to turn back on again? Your example program was so simplified, it really didn't show any thing about the on or off sequences. You just had one true going to a sub VI.
Plus I don't think you really want to be creating a task in a sub VI happening over and over and over again. Create the task the once at the beginning of the programming. Write your true or false voltage in the loop. Clear the task when the program ends.
You think you are "really, really confused."
Message Edited by Ravens Fan on 08-23-2007 09:04 PM
08-24-2007 06:29 AM
Once the pumps turn off, I don't want them to turn back on again at all until the VI is shut off and restarted or a user action takes place. This is a progressive shutdown of a fairly critical piece of equipment; When the exception occurs, the motor to the assembly turns off. Two minutes later, it has spooled down to a stop, and I can then shut the oiling system down. At that point the test is complete and I can start over.
And my signature has been 'I'm really, really confused' since I started here and had no clue at all. Now I have a little bit of the clue, haha.
08-27-2007 08:42 AM