06-14-2010 05:09 PM
I have an event sequence and with in that event sequence is a stacked sequence that is within a for loop. I also have another while loop running programs that must run continuously and collecting data. I need to collect data from the event sequence as well. I would like to collect them together and not run 2 seperate write to measurement files, but when I run a wire out of the event sequence into the while loop the program doesn't run. Is there away around this. I have attached a pic of the wire diagram for a better idea of what i am working with
06-14-2010 05:29 PM
I think the event structure is misused here : an event structure is intended to respond immediately to events, while in your vi, it will be busy rotating the filter wheel for a significant period of time. What you could do, apart rewriting your program as a state machine, is to move all your wheel stuff in a case structure in your first loop, controlled by a boolean, and trigger this boolean using a local variable in the event structure. However, the state machine would be a better, cleaner, easier to maintain solution...
06-15-2010 03:32 AM