LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tunnelling Problem

Hello,

 

I have an 8 stacked sequence which needs the same tunnel from each going through the wall. How do I create a sungle tunnel for this if its possible. All of them are errors. 

 

Regards,

 

Nevica

0 Kudos
Message 1 of 16
(3,290 Views)

When I was using sequences I programmed the flat one (tunneling is easy here) and afterwards I changed it to a stacked one to save space.

Obviously, this kills maintainability but it works.

Thats why I usually try to avoid them and go for queued state machines instead.

0 Kudos
Message 2 of 16
(3,281 Views)

So, are you saying that the individual tunnels have to stay individual. Can I use bundle in some way?

 

Nevica

0 Kudos
Message 3 of 16
(3,274 Views)

Just to be sure that I understand you correctly; does this image of a flat sequence show what you want to do in the stacked sequence?

flat sequence.jpg

you can wire the error through all sequence parts and thus through all the VIs within. If you just want to "collect" the errors from each frame you should use "Merge Errors.vi"

 

When you have programmed everything in this flat sequence just right click it and change it to a stacked one, this prevents errors (at least for me).

0 Kudos
Message 4 of 16
(3,268 Views)

Not quite,

 

The error originates in each sequence so their are 8 errors coming out of the stacks. Thats why I asked about bundles?

 

Nevica

0 Kudos
Message 5 of 16
(3,266 Views)

Ah ok, so you do not wish to interact with the errors during the stacked sequence.

This is how you bundle errors; please note, that the shown wiring will only give you the error that occured last (4) and reports only this. If you want to collect all errors you could e.g. use an array of error clusters.

0 Kudos
Message 6 of 16
(3,261 Views)

What are the two new boxes below please. New to me anyway!!

Capture3.JPG

 

 

 

I have another problem. Please see attachments. Basically it is a tunelling direction problem.

 

 

Download All
0 Kudos
Message 7 of 16
(3,257 Views)

Is there any particular reason for using the sequence structure?

 

I would suggest you to get rid of the sequnece structure and just connect the subvi's or other function. If you are worried about the data flow, then use the Error in and Error out of the subvi's...

Regards
Guru (CLA)
0 Kudos
Message 8 of 16
(3,252 Views)

Yes, I am using a sequence because it makes programming much simpler. I have a stacked eight sequence structure.

 

Did you see my attachements please?

0 Kudos
Message 9 of 16
(3,249 Views)

Well, Sequence will never make your program simpler... It may just make it look smaller (if it is of the stacked type). But you will end up adding sequence locals to pass the data between the sequences and making it more difficult to understand at a later stage....

 

May be you can share your VI and probably i can work on it to make it work without the sequence

Regards
Guru (CLA)
0 Kudos
Message 10 of 16
(3,238 Views)