‎10-04-2017 11:44 AM
BowenM wrote:(Disclaimer: this was most likely written by a grad student who had never seen LV before and was just told to make it work)
Maybe (s)he was told he got paid until the job was done? In fact that's very smart.
‎10-04-2017 12:25 PM
@altenbach wrote:
@BowenM wrote:
... and was just told to make it work)
And I guess it actually "worked" 😄
I wouldn't guess it did. Somehow I think that THAT is not the right way to calculate %charge unless the ??? units are really odd.
‎10-04-2017 12:52 PM - edited ‎10-04-2017 12:58 PM
@JÞB wrote:
I wouldn't guess it did. Somehow I think that THAT is not the right way to calculate %charge unless the ??? units are really odd.
The "???" array is the maximum currents for each magnet, and is used when sending the command to the power supply. This part I'm actually surprised works because it is a topnotch local variable induced race condition.
Edit: I lied... it isn't a race condition just oddly coded.
‎10-04-2017 03:04 PM
@BowenM wrote:
@JÞB wrote:
I wouldn't guess it did. Somehow I think that THAT is not the right way to calculate %charge unless the ??? units are really odd.
The "???" array is the maximum currents for each magnet, and is used when sending the command to the power supply. This part I'm actually surprised works because it is a
topnotch local variable induced race condition.
Edit: I lied... it isn't a race condition just oddly coded.
Silly me! I simply expected a physics grad student to use Q for electric charge (SI Ampere Seconds) Placing ??? as Seconds. %Ampere Seconds being rather odd
‎10-26-2017 01:50 PM
What kind of high-school teacher would teach the students to program like that??? 😮
‎10-26-2017 01:53 PM
A nickel is also 40cents which is a solid exchange.
‎10-26-2017 01:56 PM
Yes, a candy bar for two nickels sounds like a pretty good deal. 😄
‎10-26-2017 03:17 PM
@altenbach wrote:
Yes, a candy bar for two nickels sounds like a pretty good deal. 😄
But that loop will probably cause the processor to run a little hot, so don't get anything chocolate.
‎10-26-2017 03:28 PM - edited ‎10-26-2017 03:31 PM
@Jacobson-ni wrote:
A nickel is also 40cents which is a solid exchange.
Not if you buy %0.60 chips for 1 buck and only get a nickel back
‎10-27-2017 01:29 AM - edited ‎10-27-2017 01:34 AM
@altenbach wrote:
What kind of high-school teacher would teach the students to program like that??? 😮
Didn't want to spoil your fun on the other thread but "$%0.2f" and "%d¢" (%dAlt+0162) would blow the teachers mind! but, at least the array constants would make sense cents
(The urge to include the pun was irresistible, Oh well! )