BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Why some people say Local Variables are bad...

Ah nuts, and here I thought I was so clever Smiley Wink
 
Guess the moral of the story is read the link before you correct peopleSmiley Happy
0 Kudos
Message 31 of 395
(14,843 Views)
Thanks to Altenbach for posting the rest of the "bad aspects" in the Rube Goldberg section 😉
 
 
Message 32 of 395
(14,747 Views)

From: http://forums.ni.com/ni/board/message?board.id=170&thread.id=331929



Message Edited by JoeLabView on 06-17-2008 08:44 AM
0 Kudos
Message 33 of 395
(14,699 Views)
That one hurts to look at.
 
If the heater bit is equal to the old value of the heater bit then the the old heater value is set equal to the value of the heater bit, else set it equal to the heater bit.
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 34 of 395
(14,695 Views)
My head is spinning...  😉
Message 35 of 395
(14,692 Views)


Ben wrote:
If the heater bit is equal to the old value of the heater bit then the the old heater value is set equal to the value of the heater bit, else set it equal to the heater bit.

I think you need to specify which heater bit you are talking about. I could not even figure out which terminal the "heater local" local belongs to. 😉
 
For the "output word", we again have the problem of using an indicator as a control...
 

 
0 Kudos
Message 36 of 395
(14,677 Views)
Which option would you prefer?
 


Message Edited by JeffOverton on 06-17-2008 11:50 AM
0 Kudos
Message 37 of 395
(14,670 Views)
LOL, yes. but don't forget to generate an error condition if the two options differ. There might be a government requirement for code redundancy in case of cosmic events. 😄
0 Kudos
Message 38 of 395
(14,661 Views)

The Locals are back in town...

from: http://forums.ni.com/ni/board/message?board.id=170&message.id=332466



Message Edited by JoeLabView on 06-17-2008 01:09 PM
0 Kudos
Message 39 of 395
(14,651 Views)
In that person's defense, that was just a silly example program to demonstrate the subvi-event setup they had.
0 Kudos
Message 40 of 395
(14,646 Views)