04-10-2013 09:32 AM
04-10-2013 10:27 AM - edited 04-10-2013 10:30 AM
Just curious, why not wrap the two functions into one (such as "init" or "setup" or whatever). Then have an array of clusters, one cluster array element per channel, then have said function called in a for loop.
04-10-2013 10:37 AM
@for(imstuck) wrote:
Just curious, why not wrap the two functions into one (such as "init" or "setup" or whatever). Then have an array of clusters, one cluster array element per channel, then have said function called in a for loop.
And don't forget to propagate the error cluster between cases with the shift register.
04-10-2013 11:28 AM
SUBPOENA DUCES TECUM
TO: PaulG
forums.ni.com
Breakpoint Forum
You are hereby commanded to produce for inspection and/or copying on or before April 15, 2013 at noon at the offices/home of NI's Breakpoint Forum, any and all documents, records, or other tangible things which are in your possession or under your control relating to
__________The heinous crime of using a Stacked Sequence structure in production code.___________________
Fail not under penalty of law.
04-10-2013 02:13 PM
Bite me, bite me and bite me.
04-10-2013 02:21 PM
@PaulG. wrote:
Bite me, bite me and bite me.
Gosh, do you have to pay for your horizontal pixels or whats the deal?
04-10-2013 02:23 PM
I think PaulG was framed, you be the judge.
Hopefully order is maintained in the court.
-AK2DM
04-10-2013 02:31 PM
For his crime, he is pretty much guaranteed an order of execution at his sentencing.
-AK2DM
04-10-2013 09:08 PM
There is absolutely nothing wrong with stacked sequences. In fact I use them in a central part of my most advanced code where they provide the cleanest solution.
(two frames, each frame needs the same inputs, only the last frame outputs something, no sequence locals)
However, if abused, they an easily lead to the most unreadable am unmaintainable code, especially if sequence locals are involved and there are many frames.
04-10-2013 11:07 PM
@altenbach wrote:
There is absolutely nothing wrong with stacked sequences.
Yes there is. As soon as you need to pass data between frames you're dealing with sequence locals, which are just the worst.