LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to display histogram to look out for peaks but I am unable to do so.

Hi
I have made a vi called histo_v1.vi that takes the input from the .txt file (of a data which was initially in excel format but copy pasted into the txt file). I am trying to display this in a histogram to look out for peaks but I am unable to do so.

I am sending my vi file histo_v1.vi, the txt file td3.txt, as well as its excel counterpart td3.xls.

histo_v1.vi � this is the file which I have created using the help of the Histogram Plot.vi and a read file for excel and txt files.

td3.xls � this is the excel file whose data I want to plot in the histogram.

td3.txt � this is the txt form of the above excel file

Please respond...
Download All
0 Kudos
Message 1 of 15
(3,587 Views)
Can you save and post your vi for earlier versions of LabView, say like 6.1?
0 Kudos
Message 2 of 15
(3,587 Views)
Hello,

Do you really need to use Picture control for presenting the data ? The Waveform Chart control available in LabVIEW allows to show your data with bar style. Right click the chart and you can find plot options in Properties window. Please notice, that data points you sent seem to be equally spaced in X-axis, so you don't really need to pass every X value to the chart. They are needed only for proper labeling of axis. The case structure in your code executes only after "for" loop ends. Before it you will not see any results on your plot. Please describe your problem more precisely.

Arkadiusz Roszczewski
National Instruments
0 Kudos
Message 3 of 15
(3,587 Views)
Hi
I have tried saving the current file as a LabView 6.1 file by File»Save with Options menu. It also gave me a warnings list about a report of what it could not convert. I have saved that in a text file and also uploading the same. Hope u can help out.

thanks
Download All
0 Kudos
Message 4 of 15
(3,587 Views)
Hello,
My basic doubt is that I have an excel file td3.xls which I have already uploaded (the txt form of this file is also present) whose histogram is to be plotted alongiwth displaying the input data (either from excel or txt form, anything is fine). If you could modify my current VI or have a simpler way to do it by making a new VI of your own please inform me of the same. I truly appreciate your help.

thanks
novice_user
0 Kudos
Message 5 of 15
(3,587 Views)
What values in your data array do you consider "peaks"?
0 Kudos
Message 6 of 15
(3,587 Views)
Here is a vi that will find peaks. Select your range of data and the Max value is displayed. Hope this helps a little.
0 Kudos
Message 7 of 15
(3,587 Views)
Perhaps this is what you are looking for. I got your vi to display your data in a histogram
0 Kudos
Message 8 of 15
(3,587 Views)
Thanks a lot for what you have shown in ManualPeakLocater.vi. It is a really nice VI without using the histogram. Could you help me incorporate the histogram in the ManualPeakLocater.vi to plot a histogram of the input function?

I did not understand the histo_61_v1_rev_01.vi. as the histogram which it plots looks different from what I had done theoretically on paper. Could you help me to change the way the histo_61_v1_rev_01.vi is plotted if it cannot be done with the ManualPeakLocater.vi.


thanks a lot for your help. I appreciate it.
regards
0 Kudos
Message 9 of 15
(3,587 Views)
I haven't worked with histograms before, but think we can figure this out. Your data is in the form of a 2D array. The 1st column is linear, so I focused on the 2nd. Please provide more details as to the parameters of your histogram. I'm still not sure what you want.
0 Kudos
Message 10 of 15
(3,587 Views)