LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass DATA to next step in Sequence Structure

This is want I want to do:

After INITIALIZING boards,
1) Click on a BUTTON
2) Send a "5V" wave to Pulse generator
3) Acquire data from another board
4) Send "0V" to Pulse generator (without close it)
5) Analyze DATA
Repeate 1) to 5)

I now use a CASE structure to sense the button.
When clicked (true:) it sends '5V' to generator,
then it send a 'true' to another CASE structure
for DATA Acquisition; (false:) sends a '0V'.

It work fine. BUT as the data analysis takes time.
It only sends '0V' after data is analyzed.
I would like to turn 'OFF' the wave form as soon as
the Acquisition is done, which takes ms (Analysis takes seconds).
I would like to use the sequence structure for this task.

As you can see, t
he step 4 breaks 3&5.
How do I pass the acuired data from 3
to 5 for analyzing after step 4?

Thanks.
0 Kudos
Message 1 of 4
(2,864 Views)
Ok, to pass data between sequence structure frames you can always create "sequence loacal variable" (right-click on sequence structure border and select "add sequence local variable" from pop-up menu). But personally I recommend to avoid sequence structures - it's better to try different approach. If your diagramme looks overtaked by wires then try to push some part of the code in SubVi's...
0 Kudos
Message 2 of 4
(2,864 Views)
Thanks Defuflo:

Agree. Now let's say the 'Acquire' and 'Analysis'
are SubVIs. How do I 'insert' the 'send 0V'
between the two while maintain the data flow
between the two?
0 Kudos
Message 3 of 4
(2,864 Views)
If I've understand you right and the problem is only to maintain a strict order of setting voltage, aquiring and analysing than you can chain your SubVis and operations with some wire - usually error cluster.
It will be much more easier to me to explain if you can post your application here.
0 Kudos
Message 4 of 4
(2,864 Views)