10-12-2012 01:39 PM
Dear Sir / Madam,
Dear sir I want to take a range from 1-D data file. Like file having value 0-90, I want to take values which have 0-10, 11-20, 21-30, 31-40, 41-50, 51,60, 61-70, 71-80, and 81-90, Here I have attached file image file of results.
Solved! Go to Solution.
10-12-2012 02:25 PM
Ok, what have you tried? Sounds to me that you will need a simple FOR loop with a shift register for each bucket. Use a case structure to add to the proper array when in a certain range (the case structure does take numerics).
10-12-2012 02:30 PM
Or, a simply use the histogram.vi on the signal analisys palatte. (Sorry no example I'm ugrading to dev suite 2012 this afternoon) Crossrulz can you carry that one for me?
10-12-2012 02:52 PM
I don't see how a histogram is going to give him what he wants. The histogram VIs only give the counts of each bin, not the values that went into a bin. Or am I missing something?
10-12-2012 02:54 PM
@crossrulz wrote:
I don't see how a histogram is going to give him what he wants. The histogram VIs only give the counts of each bin, not the values that went into a bin. Or am I missing something?
Just thinking a step ahead. Why else bin the values?
10-12-2012 03:09 PM
Here ,,
I have attached a program and file, is it correct?
10-15-2012 07:22 AM
That looks like it should work.
But to save you a little on the read side, you can right-click on the Read Text File and tell it to read lines. Then wire -1 to the count in order to read all of the lines. You can then use a Fractional String to Number converter on the read array to get your 1D array of numbers.
10-16-2012 03:04 AM
Dear Sir,
Thanks for positive response, please help me a little more,
This program is working fine fine for less range, but for larger ones, like 0-10, 10-20,20-30,,,,,,,,,,,. 350-360, this program makes lost in confusion please suggest me another way to take range form 1-d array file.
Thanks & Regards
Prince.
10-16-2012 06:21 AM
10-16-2012 06:56 AM