BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

Actually, it can be simplified further by eliminating the "set waveform components" and setting the sample rate in the "binary to digital wfm" function.

 

Can't catch 'em all the first time, I guess.

 

For that matter, couldn"t one just wire the spreadsheet string straight into the "spreadsheet string to digital"?  Isn't that sort of the point of that function?  Maybe I'll try it and see.

0 Kudos
Message 1081 of 2,635
(12,293 Views)

Turns out you can't, not for this particular instance where the OP only wants a single channel of data.  The function interprets each row of the spreadsheet string as 1 channel, so the 2D array does have to be converted to a 1D array.

0 Kudos
Message 1082 of 2,635
(12,299 Views)

Seen Here

 

=0?  Then flip that using a F/T inputs into a selector, then use a Not! on that.

 

Eliminate both of those and leave just the =0 and you would have the same result!

 

Message 1083 of 2,635
(12,239 Views)

In my experience, most bugs can be fixed by removing code. 😄

 

(However, it seems to be the general consensus that adding more code is the right way. :()

0 Kudos
Message 1084 of 2,635
(12,232 Views)

 

A C programmers attempt at sorting numbers in LabVIEW. No disrespect - we were all new at one time Smiley Happy

 

 

24-1-2012%20display%204[1]_BD.png

=====================
LabVIEW 2012


0 Kudos
Message 1085 of 2,635
(12,214 Views)

I think if you literally tried tranlating that to C, it would wind up in a C programmers forum as a Rube Goldberg.

 

Imagine how that code would grow exponentially if he added even more competitors.

0 Kudos
Message 1086 of 2,635
(12,205 Views)

This might be very efficient in FPGA. 😄

0 Kudos
Message 1087 of 2,635
(12,196 Views)

I've never heard of a race where you're not allowed to finish third of fourth. They only take the best, and the worst. No middle-of-the-run folks there! Maybe it's more like a filtering system to find everybody on the extreme right, and everybody on the extreme left, and throwing out everybody in the middle. I feel so left out for not being an extremist in either direction. Smiley Sad

0 Kudos
Message 1088 of 2,635
(12,189 Views)

@smercurio_fc wrote:

I've never heard of a race where you're not allowed to finish third of fourth. They only take the best, and the worst. No middle-of-the-run folks there! Maybe it's more like a filtering system to find everybody on the extreme right, and everybody on the extreme left, and throwing out everybody in the middle. I feel so left out for not being an extremist in either direction. Smiley Sad


Kinda sounds like the US governement. Smiley Happy

Tim
GHSP
Message 1089 of 2,635
(12,135 Views)

@Ravens Fan wrote:

I think if you literally tried tranlating that to C, it would wind up in a C programmers forum as a Rube Goldberg.

 

Imagine how that code would grow exponentially if he added even more competitors.


If they program that way in C, then yes... definitely Rube Goldberg.

 

0 Kudos
Message 1090 of 2,635
(12,086 Views)