10-06-2006 09:30 AM
10-06-2006 10:28 AM
10-06-2006 10:40 AM
10-06-2006 11:21 AM
Maybe the problem is that you have data dependency between the two loops. You've got a stop button in the top for loop (which does absolutley nothing) wired to the bottom for loop. That means that the bottom for loop will not start until the top for loop finishes. Understanding data flow is basic to using LabVIEW. That is the underlying pardigm. If you have a data source wired to a data sink, the function with the data sink will not execute until the data source is available. That is how you can control execution order with the error in/error out connections. You have some of the error in/error out connections wired but then you don't continue to the next frames. Do the wiring and you can eliminate all of those sequence structures and actually be able to handle any errors that may occur.
Before you continue, you really need to do a lot of cleanup. A good rule of thum is to keep the diagram no larger than the screen size. You have wires going in every direction and some are hidden by other structures. This all makes it very difficult to read and maintain. You are also repeatedly creating a task doing a digital output, and then stopping and closing the task. The create/stop/close takes quite a bit of time and you don't need to do that. Create the physical channel and start the task at the very beginning. Pass the task from frame to frame if you insist on keeping the sequence structure and then stop and close the task at the end.
10-10-2006 08:44 AM
10-10-2006 10:01 AM