ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

triggered sequence

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 4
(2,766 Views)

how you have made seqence using state machine or something different

0 Kudos
Message 2 of 4
(2,765 Views)

I am new to State Machine; what I used is the basic Stacked Sequence Structure

0 Kudos
Message 3 of 4
(2,751 Views)
Solution
Accepted by topic author antony_sc

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 neverSmiley Happy ( 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 Smiley Wink

Message 4 of 4
(2,749 Views)