BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

Isn't there a problem there if the Quotient is negative?

I remember something like that.  Then it'd be "relegated" (or is that promoted) to functionally incorrect code......

Smiley Very Happy

Shane.
0 Kudos
Message 201 of 2,635
(11,718 Views)
In this instance negativity is not a factor. I forgot to include a link to the thread to see it in context: http://forums.ni.com/ni/board/message?board.id=170&thread.id=316394
Message 202 of 2,635
(11,710 Views)

You forgot to mention that the indicator "Index" is a double... Why a double?  Everything else is an integer..  😉

I forgot to mention that it was cohersed to a double..   (nice red cohersion dot).. 

Got to put my right eye patch..  I have to fix my avatar..  😉



Message Edited by JoeLabView on 04-15-2008 03:58 PM
Message 203 of 2,635
(11,699 Views)

@JoeLabView wrote:

You forgot to mention that the indicator "Index" is a double... Why a double?  Everything else is an integer..  😉


Indeed. When I created the alternative I quickly slapped it together and just did a drag-and-drop of the indicator from the poster's original VI.


Message Edited by smercurio_fc on 04-15-2008 03:05 PM
Message 204 of 2,635
(11,697 Views)
Hrrmmmmm! What are the chances that the property node gets read after the boolean receive the new value??? ~0%??
 
 
 


Message Edited by altenbach on 04-19-2008 09:34 PM
Message 205 of 2,635
(11,627 Views)

Altenbach,

I have a coin that I can flip..  😉

0 Kudos
Message 206 of 2,635
(11,585 Views)
I call edge! Smiley Tongue

And hope for a burst of Octarine...

Shane.

Did I win?
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Message 207 of 2,635
(11,574 Views)

"Hrrmmmmm! What are the chances that the property node gets read after the boolean receive the new value??? ~0%??"

After too many years of whatching the code in execution high-lighting I have to say "0%".

The code scheduler appears to resolve all values that do NOT have any dependencies on previous code FIRST. THEN it does everything else.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 208 of 2,635
(11,567 Views)

If it's really 0%, then it's not a race condition, is it?  

That makes it a "clever" way to avoid a sequence structure.  Smiley Very Happy

0 Kudos
Message 209 of 2,635
(11,550 Views)


Anthony de Vries wrote:

If it's really 0%, then it's not a race condition, is it?  

That makes it a "clever" way to avoid a sequence structure.  Smiley Very Happy


I would not count on it. Even if it is 0% now, it could be different in a future version of LabVIEW or on a massively multicore CPU, where both things could happen at the same time and the result could flip more randomly. 😉
 
It would be a clever way only of you really want and expect the 0% result. I am pretty sure the original programmer wanted the 100% result 100% of the time. 😄
0 Kudos
Message 210 of 2,635
(11,541 Views)