NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Trusted Enthusiast
RayFarmer
Posts: 4,648

Re: Rube Goldberg Code

[ Edited ]

What about the bit in the blue markup!!!

Message Edited by Ray Farmer on 01-25-2007 07:00 AM

Regards
Ray Farmer
Knight of NI
altenbach
Posts: 22,792

Re: Rube Goldberg Code

You never know, the FALSE case might contain more code, e.g. a dialog box or subVI call. We cannot be sure from the picture alone, so I did not judge it.

Most likely you're right and there's nothing but a FALSE in the other case. :smileywink:


LabVIEW Champion . Oh, by the way, I work for peanutsKudos .

Knight of NI
Knight of NI
tst
Posts: 10,222

Re: Rube Goldberg Code

WARNING - BAD PUN AHEAD!


shoneill wrote:

Somehow I always knew LabVIEW was referring to ME when it complained about "Insane Objects"......

Or in your case, that should be "InShane Objects"... :smileysurprised:

 

I can hear the "Boo"s all the way here.


___________________
Try to take over the world!
Knight of NI
Ray.R
Posts: 10,165

Re: Rube Goldberg Code

[ Edited ]

I am fixing new code...  You see what I'm up against...

Do I need to explain what's wrong with the array indexing in this example? (and I have better examples coming up :smileywink: )

OK... I shouldn't say "wrong"... maybe that's too strong...  How about inefficient?  or simply Goldberged code, maybe??  :smileyvery-happy:

 

 

Message Edited by JoeLabView on 01-25-200708:59 AM

Message Edited by JoeLabView on 01-25-2007 09:04 AM

.
(starting to) See Life in a brand new way...

b* ^ )
Knight of NI
Ray.R
Posts: 10,165

Re: Rube Goldberg Code

Can't edit anymore... :smileysad:

This is the image I wanted to post..

 

.
(starting to) See Life in a brand new way...

b* ^ )
Knight of NI
Ray.R
Posts: 10,165

Re: Rube Goldberg Code

[ Edited ]

Here's a fun one..   

It compares elements in two array to see if there is a match..

I added the comment in the bottom Case Statement.  I should have removed it altogether.. :smileyvery-happy:

Message Edited by JoeLabView on 01-25-2007 09:24 AM

.
(starting to) See Life in a brand new way...

b* ^ )
Knight of NI
altenbach
Posts: 22,792
0 Kudos

Re: Rube Goldberg Code

Oh, these are good! The code is a bit hard to understand (especially in the second image) since we don't know what feeds the right shift register from the inside. There should be a law against straying from a horizontal line this much. :smileywink:
 
I assume you're turrning all this into a "one-liner", just operating on the 2D array ("in place", of course). :smileyhappy:

LabVIEW Champion . Oh, by the way, I work for peanutsKudos .

Knight of NI
Knight of NI
tst
Posts: 10,222

Re: Rube Goldberg Code



JoeLabView wrote:

   


That one took me a minute to figure out, but yes, assuming that there are no other cases, or that they are the same, then simply using the equel node should be enough. That is really confusing.

___________________
Try to take over the world!
Knight of NI
Ray.R
Posts: 10,165

Re: Rube Goldberg Code

[ Edited ]

It gets worse to the left of it.. I can't show it because of vi names... But imagine that what's in front of it came from a previous screen within a Stacked Sequential Structure.  Some of which have multiple levels of embedded frames!!

Here's one such sub-vi within that code.  Not that it's wrong... Just : WHY???  (PS: that is the entire content of the sub-vi)

 

Message Edited by JoeLabView on 01-25-2007 10:37 AM

.
(starting to) See Life in a brand new way...

b* ^ )
Knight of NI
Ray.R
Posts: 10,165
0 Kudos

Re: Rube Goldberg Code



altenbach wrote:
I assume you're turrning all this into a "one-liner", just operating on the 2D array ("in place", of course). :smileyhappy:



Yes... but I too need to understand what's going on first!  :smileysurprised:
.
(starting to) See Life in a brand new way...

b* ^ )
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page