BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

Sorry all is my fault actualy. I was 100% sure i saw the Array Subset function. Smiley Surprised 

 

Message Edited by t06afre on 12-18-2008 05:38 PM
Message Edited by t06afre on 12-18-2008 05:39 PM


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 401 of 2,635
(12,257 Views)

Yet another example of using Select instead of Boolean operations:

 

 

From here.

Message 402 of 2,635
(12,181 Views)

In fairness, the lower selector (F) of the upper select function is not guaranteed to be false, at least not from the picture provided.

 

We also can't see what the ? is wired to in the lower select function.....

 

So they may at least have proper functionality.  True, it could be done with an OR statement, but I personally don't see the problem with the Select method.

 

Shane.

Message Edited by Intaris on 12-27-2008 06:34 PM
0 Kudos
Message 403 of 2,635
(12,174 Views)
The link I provided has the original code. The use of the 2 Select functions can be done more succinctly with an OR and an AND gate.
0 Kudos
Message 404 of 2,635
(12,145 Views)

Small RG code dealing with converting a number to a 24-bit small-endian data string. We can do a bunch of array gymnastics, or just use the Flatten To String function:

 

 

From here.

Message 405 of 2,635
(11,991 Views)

Any reason we don't reverse the string in the lower section?

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 406 of 2,635
(11,995 Views)

TonP wrote:

Any reason we don't reverse the string in the lower section?


reverse the string? I'm not sure what you're referring to.

0 Kudos
Message 407 of 2,635
(11,991 Views)

Sorry I missed that the upper part was the clean part.

In the lower part there is a superb 'Node Equivalent' section:

 

Ton

 

Message Edited by TonP on 01-26-2009 09:52 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 408 of 2,635
(11,932 Views)

Good catch Ton,

 

As you noticed, the bottom one was the RG.  The top one was cleaned.  Both solutions are good.  I don't know if one would actually be better than the other..  Comments anyone (on preference)?

 

R

0 Kudos
Message 409 of 2,635
(11,794 Views)

 

Advanced PID fromthis thread

Ben

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