BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW programming aids

I almost posted it in this thread, but figured it would be more appropriate here.

LabVIEW programming aid.png

 

(For context, I work with several people who abuse stacked sequence structures.  I figured I'd help them out...)

Message 1 of 12
(10,148 Views)

This will be a little less disruptive...


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 12
(10,145 Views)

@crossrulz wrote:

This will be a little less disruptive...

 


I don't know.  Removing a flat sequence might take longer to fix than rewriting the entire program from scratch....

0 Kudos
Message 3 of 12
(10,140 Views)

@BowenM wrote:

@crossrulz wrote:

This will be a little less disruptive...

 


I don't know.  Removing a flat sequence might take longer to fix than rewriting the entire program from scratch....


Try crosrulz codeSmiley Wink

There is no code loss! It simply converts the SSS th a FSS then removes the FSS leaving the code within the frames intact.


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 12
(10,101 Views)

See also this old community nugget 😄 Still valid today!

0 Kudos
Message 5 of 12
(10,095 Views)

I love it!!  😄

 

I'm definitly going to use that.  LOL!

 

 

0 Kudos
Message 6 of 12
(10,090 Views)

Y'all should use Traverse for GObjects.vi instead of AllObjs[] if you want to nail Stacked Sequences on nested diagrams too.

 

Or upgrade to LabVIEW 2014 or later, where we removed Stacked Sequences from Quick Drop/palettes altogether. 😉 

Message 7 of 12
(10,065 Views)

@Darren wrote:

 

Or upgrade to LabVIEW 2014 or later, where we removed Stacked Sequences from Quick Drop/palettes altogether. 😉 


Sadly, they found the workaround 😞  Place flat, convert to stacked!

 

Message 8 of 12
(10,049 Views)

😮 😮 😮

0 Kudos
Message 9 of 12
(10,039 Views)

@Darren wrote:

Y'all should use Traverse for GObjects.vi instead of AllObjs[] if you want to nail Stacked Sequences on nested diagrams too.

 

Or upgrade to LabVIEW 2014 or later, where we removed Stacked Sequences from Quick Drop/palettes altogether. 😉 


You know, I started making a version that does that, and it turns out that TRef Traverse.vi has a Stacked Sequence Structure in it!  Bad Darren!  Granted, it is a single frame just to perform a Class Operator.Remove regardless of an upstream error.  But still.  Maybe NI should change it to a Flat Sequence Structure...


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 12
(10,029 Views)