LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with broken wires in sequences

Hello,

I have a rather strange problem with sequences in LabVIEW 6 (also 6.0.2).

I use a sequence which contains some VISA VIs, which resource and error inputs/outputs are passed to the next frame. I came across the rather strange problem that I get broken wires whenever I put something into frame No. 1 and connect a VI output to a tunnel. (It always happens exactly to frame No. 1! The same contents in frame No. 0 or 2 or anything else is accepted!)

I have included a small demonstration VI, including just a sequence with three frames, each one containing a VISA serial write VI. Although all frames contain the same, frame No. 1 has broken wires. BTW, it does not depend on the VI employed; it happens even when the input
tunnel is just connected to the output tunnel.

What may be the reason for this rather strange behaviour? Did I make some mistake? Or how can I solve this issue.

Thanks in advance for your help!

Greetings
Kristian Laß
0 Kudos
Message 1 of 3
(2,560 Views)
Hi

The problem is that you cannot wire from different frames to the same tunnel in sequence structures! That's impossible. You have to replace the sequence structure with a case structure inside a while loop. Check my little example.

Luca P.
Application Engineer
National Instruments
Regards,
Luca
0 Kudos
Message 2 of 3
(2,560 Views)
Hello, Kristian Laß

When you use secuence, only one frame can get out your variables.
So you have number of ways how to solve this issue:
1) Don't use secuence, use while (for) cycle with case into (see example)
2) Use secuencal local (this method is not good)
3) Use number of secuences each with one frame only
0 Kudos
Message 3 of 3
(2,560 Views)