10-15-2013 04:06 AM
Hello everyone. In my optoelectronic acquisition program, I have a nested sequence of three steps. The first sets the volt to the component, the second acquires the spectrum from a photodetector, the third increases the voltage. All is inside a loop where which scans the voltage in the interested range.
The problem is that the photodetector might take 10ms to 10min to get the data, but fortunately it raises a flag when the acquisition is complete. Now, how can I set the sequence so that the third step is done only when I get this flag up? One solution is to include a loop inside the sequence second step, controlled by this flag. However, I think it is not the nicest solution. Is there anything better?
I am using Labview 8.
Thanks
Solved! Go to Solution.
10-15-2013 04:08 AM
how you have made seqence using state machine or something different
10-15-2013 05:08 AM
I am new to State Machine; what I used is the basic Stacked Sequence Structure
10-15-2013 05:24 AM
If you are new that is the best opportunity to learn to do things in right way.
Try not to use stacked sequences until absolutly necessary, maybe never
( search in forum and learn where you should pay attention while using them )
Learn state machine start with one while loop, type def enum using states and case structure.
Enough things for you to exploer ![]()