BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

Yes, it basically an "index array" operation, getting the first element of a 1D array.
0 Kudos
Message 471 of 2,635
(11,921 Views)

Oh yea! Then I have trouble finding the correct function in Labview it is a big relief to know I can calm down and turn to the Express Vi palette. I have often wondered what people were doing before there were Express VIs. A veteran once took me aside whispered into my ear that they were forced to program and do some thinking while they codedSmiley IndifferentSmiley Surprised.

I also took the liberty to show the underlying code behind this idea. Old  Rube would have been pleased if he was able to this. Take notice of the genius behind the often used "Dynamic To Waveform Array.vi" and the "Waveform Array To Dynamic.vi" 

Message Edited by Coq rouge on 05-13-2009 10:20 AM


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 472 of 2,635
(11,892 Views)

I found this code in the forum today. I have seen worse, but it was an interesting angle of attacking a problem in Labview

Found here http://forums.ni.com/ni/board/message?board.id=170&thread.id=409573

Message Edited by Coq rouge on 05-18-2009 08:23 PM


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 473 of 2,635
(11,791 Views)
I have looked at this topic many times. Today I saw this on the LAVA forum and felt it was a must. Why not just stop if true :)?
0 Kudos
Message 474 of 2,635
(11,725 Views)

for easier viewing...:)

 

 

 

0 Kudos
Message 475 of 2,635
(11,718 Views)

Well, the VI could be derived from very old code. 😉

 

In the early days of LabVIEW (e.g. 4.0) the "stop if true" mode did not exists. (Also wiring the termination terminal was optional back then).

Message 476 of 2,635
(11,734 Views)
Touche* ..Fair enough...but I believe it was coded recently in 7.1. I don't know all the details of it though. Lets just say if its recent, its extra code 🙂
Message Edited by for(imstuck) on 05-21-2009 11:44 PM
0 Kudos
Message 477 of 2,635
(11,732 Views)

Dont know if it is true in this case, however coding standards can quite often lead to rube's.  for example a coding standard might be

 

"All while loop conditions must exit on True" (I know you can set the stop condition to whatever you like in more recent LV versions), but i often came across scenarios where standards meant making rubes.  I suppose this makes sense in some way if for example your whole project had "stop while loop on true condition" your managers/peers can do reviews that little bit easier .

 

craigc

LabVIEW 2012
0 Kudos
Message 478 of 2,635
(11,716 Views)

I have not seen this one before. To add two numbers do we could do it simple. But using a Matlab script node is more elegant Smiley Very Happy

Found here http://forums.ni.com/ni/board/message?board.id=170&thread.id=411133

sample.PNG



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 479 of 2,635
(11,638 Views)

Coq rouge wrote:

I have not seen this one before. To add two numbers do we could do it simple. But using a Matlab script node is more elegant Smiley Very Happy

Found here http://forums.ni.com/ni/board/message?board.id=170&thread.id=411133

sample.PNG


LOL and there seems to be extra code in the Mathscrip node. Why rename IL2 before returning it?

Message 480 of 2,635
(11,630 Views)