BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

Hmm,

 

For some reason the word "chosen" made me think about the following:
chosen

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 1181 of 2,600
(11,652 Views)

complicated.pngThe event is Subtract background: Value change.

 

I didn't realise at first that this was the same as:
simple.png

0 Kudos
Message 1182 of 2,600
(11,535 Views)

Not really RG code. I usually leave controls unconnected and use the outputs from the event structure.

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
Message 1183 of 2,600
(11,504 Views)

Not really RG code either, but I am always amazed what passes as "solution" these days. 😄

(This is almost like in politics 🐵

 

 

(seen here)

Message 1184 of 2,600
(11,453 Views)

@altenbach wrote:

Not really RG code either, but I am always amazed what passes as "solution" these days. 😄

(This is almost like in politics 🐵

 

 

(seen here)


Where is that Me Too button when it could be useful Smiley LOL

Capture.PNG


"Should be" isn't "Is" -Jay
Message 1185 of 2,600
(11,445 Views)

Splitting an integer representing seconds into hours, minutes, and seconds can be done in many ways, some are easier than others (seen here😞

 

 

Same thing (would work equally well with DBL):

 

 

 

To be fair, P@Anand probably had a ready-made VI that provided also days, etc.

 

That reminds me of a joke about a mathematician making cheese...

 

On the first occasion he pours the milk in the pot, lights the fire, puts pot over fire, stirs, etc.

 

On the second occasion the fire is already lit and the milk is in the pot (I guess the cleaning lady was helping out). The mathematician extinguishes the fire, pours the milk back in the bottle and cleans the pot. Thus he has reduced it to a problem that her knows how to solve from experience. 😄

Download All
Message 1186 of 2,600
(11,321 Views)

@altenbach wrote:

Splitting an integer representing seconds into hours, minutes, and seconds can be done in many ways, some are easier than others (seen here😞

 


I can't tell you how many times I have done this exact same code.  Then I started making a reuse library.  Except I didn't flip my minutes and hours...:smileytongue:

 

EDIT:  Just noticed you corrected yourself between postings.  Oops.


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 1187 of 2,600
(11,308 Views)

@crossrulz wrote:

EDIT:  Just noticed you corrected yourself between postings.  Oops.


Achieving perfection is an iterative procedure with no real enpoint... 😄

Message 1188 of 2,600
(11,289 Views)

@altenbach wrote:

@crossrulz wrote:

EDIT:  Just noticed you corrected yourself between postings.  Oops.


Achieving perfection is an iterative procedure with no real enpoint... 😄


At least I'm to the point where I admit when I screw up...


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 1189 of 2,600
(11,283 Views)

@altenbach wrote:

Splitting an integer representing seconds into hours, minutes, and seconds can be done in many ways, some are easier than others (seen here😞

 

 

Same thing (would work equally well with DBL):

 

 

 

To be fair, P@Anand probably had a ready-made VI that provided also days, etc.

 

That reminds me of a joke about a mathematician making cheese...

 

On the first occasion he pours the milk in the pot, lights the fire, puts pot over fire, stirs, etc.

 

On the second occasion the fire is already lit and the milk is in the pot (I guess the cleaning lady was helping out). The mathematician extinguishes the fire, pours the milk back in the bottle and cleans the pot. Thus he has reduced it to a problem that her knows how to solve from experience. 😄


Some are even easier.   😄

317.PNG

 

Note: the timestamp to time record can actually take a dbl but the number to timestamp function is just soooooo pretty


"Should be" isn't "Is" -Jay
0 Kudos
Message 1190 of 2,600
(11,281 Views)