BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

I used a stacked sequence today. So sue me.

Yes, any sequence local can spoil a perfectly good sequence. 🙂

 

(In 17 years of LabVIEW programming, I've only found a single instance where a stacked sequence was useful, and it did not involve any locals.)

0 Kudos
Message 11 of 18
(5,506 Views)

@PaulG. wrote:

Smiley Tongue

 

stacked sequence.PNG


Looks similar to some code i inherited. I made a small help-vi that extracts the Channel clusters and build them into an array, that way it's easy to look or index individual ones. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 12 of 18
(5,494 Views)

@altenbach wrote:

Yes, any sequence local can spoil a perfectly good sequence. 🙂

 

(In 17 years of LabVIEW programming, I've only found a single instance where a stacked sequence was useful, and it did not involve any locals.)


I'm trying to remember the last time I used a stacked sequence before this instance. It was in my noob days (>10 yrs ago). When I was whipping this up the stacked sequence seemed like a useful choice. After I wrote it I felt "dirty". Smiley Wink 

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
Message 13 of 18
(5,485 Views)

@altenbach wrote:

Yes, any sequence local can spoil a perfectly good sequence. 🙂

 

(In 17 years of LabVIEW programming, I've only found a single instance where a stacked sequence was useful, and it did not involve any locals.)


I've found quite a few instances of stacked sequences which were useful.  Mind you, they were all in order to show people why you shouldn't use them so yeah, they're not a common visitor to my block diagrams.

Message 14 of 18
(5,462 Views)

 

 

LOL!!

 

Message 15 of 18
(5,412 Views)

WHY???

If not a dirty patch to add some channels where only one was designed 😉

 

EDIT: 

 

so a dirty patch to get 3 Ch on a dirty patch to get 2Ch ? 😉    and never mind, for the cluster we have a type def everywhere ... (I hope!)  

 

WHY.png or WHY2.png

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 16 of 18
(5,406 Views)

This stacked sequence was used mostly for real estate concerns on my block diagram. However, the functionality has expanded to where not only will the stacked sequence go away but the all of the code it contains will go into a sub-vi. "Problem" solved.

 

Sorry for causing a disturbance in the Force. Smiley Sad

 

But I would do it again. Smiley Happy

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 17 of 18
(5,393 Views)

LOL!!   The Force needs to be disturbed...  otherwise it becomes static (and useless)

0 Kudos
Message 18 of 18
(5,372 Views)