ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(12,548 Views)

This will be a little less disruptive...



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
(12,545 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
(12,540 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
(12,501 Views)

See also this old community nugget 😄 Still valid today!

0 Kudos
Message 5 of 12
(12,495 Views)

I love it!!  😄

 

I'm definitly going to use that.  LOL!

 

 

0 Kudos
Message 6 of 12
(12,490 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
(12,465 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
(12,449 Views)

😮 😮 😮

0 Kudos
Message 9 of 12
(12,439 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...



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
(12,429 Views)