09-16-2011 03:46 AM
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
09-16-2011 04:18 AM
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.
09-16-2011 04:27 AM
So, are you saying that the individual tunnels have to stay individual. Can I use bundle in some way?
Nevica
09-16-2011 04:38 AM
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?
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).
09-16-2011 04:40 AM
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
09-16-2011 04:49 AM
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.
09-16-2011 05:01 AM - edited 09-16-2011 05:02 AM
What are the two new boxes below please. New to me anyway!!
I have another problem. Please see attachments. Basically it is a tunelling direction problem.
09-16-2011 05:06 AM
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...
09-16-2011 05:08 AM - edited 09-16-2011 05:11 AM
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?
09-16-2011 05:25 AM
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