BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

 
Sometime we need to clear a string indicator by writing an empty string to its terminal. Here's the Rube Goldberg way.
 
  • Of course if the content of the string was concatenated from 5 substrings, we need to concatenate five empty strings to match it 😮
  • We also cannot really trust a single wire, so we need to branch it and write to the indicator terminal AND to a local variable of same.
  • Now can we be double sure that that sucker gets really cleared. 😄
  • For government applications, we should actually add a few more copies of the local variable to bring it up to specs.

(from http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=294413#M294413)



Message Edited by altenbach on 01-11-2008 11:14 AM

Message 121 of 2,600
(20,689 Views)
Christian wrote

  • For government applications, we should actually add a few more copies of the local variable to bring it up to specs.

  •  
    You had me scared there for a second.   I do a fair amount of gov. work and need to keep up on req's.
     
     
    Ben
    Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
    Message 122 of 2,600
    (20,666 Views)
    LOL! @ Altenbach..
     
    I can almost not believe that it was true..  Wow!  LOL!! 
     
    LOL!!  😄 😄
     
    Now that's a funny RG code!
    LOL!!
    Message 123 of 2,600
    (20,648 Views)
    If monitor resolution was truly unlimited, we could easily manage a diagram that is 14285 pixels wide and 3354 pixeld high.
     
    Here's how it looks if I scale it down to 5% (!!) of the original size in a graphics program: 😮
     
     
    Note: each of the inner stacked sequences has 10 frames. Maybe we should convert those to flat sequences. 😄
     
    Suddenly, a state machine does not sound like such a bad idea. 🙂
     



    Message Edited by altenbach on 02-01-2008 10:59 AM
    Message 124 of 2,600
    (20,542 Views)

    Altenbach,

    I admire your tenacity at looking at such diagrams.. 

    It takes courage.... and probably some strong beverage at the end of the day.. 😄

    Message 125 of 2,600
    (20,523 Views)
    Sometimes it may be better if the code does take up more than one screen!