BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

Wonderful.

Thank you guys.

Didn't know this function.

 

Regards 😄

Mondoni
0 Kudos
Message 1301 of 2,635
(10,808 Views)

@crossrulz wrote:

Like this.


Still, A bit R-Gish when you only need:
1a.png
(Handles optionally ignoring case of the delimiter too)

"Should be" isn't "Is" -Jay
Message 1302 of 2,635
(10,757 Views)

@JÞB wrote:

@crossrulz wrote:

Like this.


Still, A bit R-Gish when you only need:
1a.png
(Handles optionally ignoring case of the delimiter too)

The advanced string functions really need to be promoted to the palette.  And I really need to start using them as well.  Make people freak out by using hidden functions.  And that one there is one I could use all the time.


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 1303 of 2,635
(10,737 Views)

!1.png

just a tip


"Should be" isn't "Is" -Jay
Message 1304 of 2,635
(10,728 Views)

 

Basically, we have a few boolean arrays and are trying to count how many are true. (Typically a near atomic operation "boolean to to (0,1)" + "add array elements").

 

 

Here is a small part of a FOR loop that tries to to about the same in the RG way. 😄

 

Yes, the actuall code is significantly larger, see for yourself!

 

(original thread)

 

 

 

Message 1305 of 2,635
(10,692 Views)

Q: Help! I am running out of memory quickly!

A: Aha! Why don't I simply add a delay so it runs out of memory more slowly! Genius!

 

(paraphrasing from here)

Message 1306 of 2,635
(10,654 Views)

@altenbach wrote:

 

Basically, we have a few boolean arrays and are trying to count how many are true. (Typically a near atomic operation "boolean to to (0,1)" + "add array elements").

 

 

Here is a small part of a FOR loop that tries to to about the same in the RG way. 😄

 

Yes, the actuall code is significantly larger, see for yourself!

 

(original thread)

 

 

 


There's a bug in the code...  Can you find it??  THere's a -1 in (at least) one of the False case(s).  Maybe it's not a bug.... maybe it was intentional...  OMG!!  What code!!

0 Kudos
Message 1307 of 2,635
(10,533 Views)

@Ray.R wrote:

What code!!

How does it cope with a full block diagram cleanup?

0 Kudos
Message 1308 of 2,635
(10,516 Views)

Hi Rhino,

 

it does work quite ok: a lot of straight wires with kind of hypnotic look...

 

Does it really need to STOP the VI when the parking lot is too crowded? I can imagine the reaction of possible users 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 1309 of 2,635
(10,502 Views)

It also stops when it's empty...

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 1310 of 2,635
(10,497 Views)