01-20-2012 07:37 PM
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.
01-20-2012 07:48 PM
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.
01-24-2012 01:05 PM - edited 01-24-2012 01:06 PM
=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!
01-24-2012 01:11 PM
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. :()
01-24-2012 01:57 PM
A C programmers attempt at sorting numbers in LabVIEW. No disrespect - we were all new at one time ![]()
01-24-2012 02:21 PM
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.
01-24-2012 03:25 PM
This might be very efficient in FPGA. 😄
01-24-2012 03:41 PM
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. ![]()
01-25-2012 08:48 AM
@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.
Kinda sounds like the US governement. ![]()
01-26-2012 01:48 PM
@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.