07-06-2005 10:26 PM
@Mark_Strange wrote:
I apologise in advance for my code. I don't know what's wrong with it, but I know theres something blatantly stupid happening in there, I just can't see it.
07-07-2005 01:07 PM
[Aside: I did try to use the General Histogram function and create a histogram that way, but for some reason, after some random time period less than 1 minute, the histogram clears itself and remains blank until you restart the program]
07-07-2005 01:35 PM - edited 07-07-2005 01:35 PM
This works just fine here after some casual testing. What is your LabVIEW version?
@Mark_Strange wrote:
What I wanted was a histogram with 16384 channels, but when I use the Histogram express VI, it only puts counts into every second channel. (ie. the channels 1,3,5,7, etc always have 0 counts). So instead of trying to create my own histogram, I tried increasing the channels to 32768, and yet again, the even numbered channels were filled. Thus, I just left it at 32768, and thought it would be easier to just delete the unwanted elements in the histogram array afterwards.
Message Edited by altenbach on 07-07-2005 11:39 AM
07-07-2005 03:12 PM
altenbach wrote:
This works just fine here after some casual testing. What is your LabVIEW version?
I am using LabVIEW 7.1, which I believe is the most recent version.
This is what puzzles me why the Histogram VI doesn't work the way it should. Anyway, that little For loop bit of code you wrote works fine, I just added on a bit that adds up all the histograms and gives me a nice plot. I even added a threshold bit on, to block out values above or below upper and lower boundaries. Now the only problem I have with it is that the plot I get is all jagged, though thats probably due to my data, rather than any coding, and could probably be resolved with a longer data collection time.
Thanks for helping me through this problem. Its much appreciated