BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

Wow, walk away from including years. Leap years will quickly turn this into Monty Python level silliness.

 

Hmm, I wonder if that's why they started the seconds at 1904.

Josh
Software is never really finished, it's just an acceptable level of broken
0 Kudos
Message 1201 of 2,608
(11,129 Views)

@JW-L3CE wrote:

 

Hmm, I wonder if that's why they started the seconds at 1904.


Yes, because it meant you only have to check for divisibility by 4 and you're good up to 2096 (2000 was a leap year because it's divisible by 400). This was a relevant consideration when the format was designed, probably somewhere in the 70's or early 80's.

 


___________________
Try to take over the world!
0 Kudos
Message 1202 of 2,608
(11,117 Views)

@JW-L3CE wrote:

Wow, walk away from including years. Leap years will quickly turn this into Monty Python level silliness.

 

Hmm, I wonder if that's why they started the seconds at 1904.


 

horology lesson.  (Yes I have made an amature study of horology- please don't tell my wife)  1900 was significant in timekeeping because between 1950 and 1960 The SI second was defined as: "The fraction 1/31,556,925.9747 of the tropical year for 1900 January 0 at 12 hours ephemeris time"  This definition has remained adopted by various programs for the keeping of civil time.  Since 1960 the SI Second was redefined to be consistant with atomic clocks: "The duration of 9,192,631,770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium-133 atom."  The differences introduced by severing planatary motion for civil timekeeping and Atomic activity for scientific instrumentation are resolved by leap seconds inserted or deleted as needed in order to synchronize astronomical observation with time to within a 1/2 second or so (they are inserted or deleted on prefered days).

 

the 1904 Epoch is the one apple chose as a base date for its OS.  So chosen by fiat with the justification that it was the first leap year on the 20th centuary thus ensuring that leap years could be calculated as year mod 4 R=0 until the year 2100.   

 


"Should be" isn't "Is" -Jay
Message 1203 of 2,608
(11,111 Views)

Now that leap years are sorted... we need to make it leap-second proof.

0 Kudos
Message 1204 of 2,608
(11,067 Views)

@Hornless.Rhino wrote:

Now that leap years are sorted... we need to make it leap-second proof.


Hence the Time to Time of day function.  Leap seconds are recorded at the residence of Vice President Biden.  Just give Joe a call and ask for a lookup table.  Smiley Wink


"Should be" isn't "Is" -Jay
Message 1205 of 2,608
(11,027 Views)

Jeff·Þ·Bohrer wrote:

Hence the Time to Time of day function.  Leap seconds are recorded at the residence of Vice President Biden.  Just give Joe a call and ask for a lookup table.  Smiley Wink


And here I thought all of this was created and handled by the Former Future President of United States All Gore...


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 1206 of 2,608
(11,018 Views)

OK, I am stumped. The second frame of a huge sequnce contains only the following code. What is it supposed to do??? 😄

 

(looks like a simple 200ms delay ...)

 

 

 

 

(seen here)

Message 1207 of 2,608
(10,970 Views)

It's a genius way of implementing a wait function!

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 1208 of 2,608
(10,942 Views)

@ThiCop wrote:

It's a genius way of implementing a wait function!


Maybe we should suggest to turn the diagram constant into a control and then make the entire thing into a subVI. 😄

Message 1209 of 2,608
(10,935 Views)
There is another 250Plus kudos Idea Exchange thread. Go get-r-done!

"Should be" isn't "Is" -Jay
0 Kudos
Message 1210 of 2,608
(10,904 Views)