04-17-2007 05:48 PM
04-18-2007 11:56 PM
napview:
If you already have the x and y arrays, you could feed them into a XY graph and create the chart as seen in your picture. The only thing about it is that unless you build your x and y array continuously. you will not be able to create a continuous chart because xy graphs only take arrays of data. You could also use "Create Histogram" Express VI to create an histogram of your data by specifying the number of bins and other parameters. I hope this helps and please let me know if I misunderstood you.
Regards,
Rudi N.
04-19-2007 12:24 PM
Rudi,
X array = [0 0 1 1 2 2]
Y array = [5 6 7 8 9 10] where Y = 5, 6 when X = 0 and so forth.
Histogram would not work because bins showed up as columns with multiple Y values.
04-20-2007 05:29 PM
napview:
Thank you very much for getting back with me. How are you generating the X array of data?. I would like to know the logic behind the data so that I can implement in LabVIEW. Histograms by nature do not have that type of patterns in the numbers.
Regards,
Rudi N.
04-20-2007 07:04 PM
Rudi,
You can open the attached vi 8.2 for the arrays. Thanks for trying to help.
04-23-2007 05:29 PM
napview:
Thank you very much for providing more information about what you are trying to do. I am very curious about you were able to draw such a plot in Excel. In any case, I found a way to get a similar plot using LabVIEW. Please take a look at the attached VI and let me know what you think.
Regards,
Rudi N.
04-23-2007 06:54 PM
Rudi,
You got it! Thank you very much for your time. Now I need to integrate the example into the codes.![]()
04-24-2007 09:02 AM
napview:
I am pleased to hear that it answered your question. I am just curious to know how this part fits in your overall application. I guess I am asking how relevant is it to have the data plotted in this way?.
Thanks,
Rudi N.
04-24-2007 12:08 PM
Rudi,
Actually looking more carefully at your code, the x scale marker is not exactly whatever from the X data array [0 0 1 1 2 2] (in this case) because it is generated by a remainder from a division (harder to do). In the application, the reason is that it is easier than to see the data points spreading out rather than being clustered at the same x marker.
04-25-2007 02:48 PM