LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

help needed in plotting XY graph

hello,
basically i am doing particle analysis. so i open an image and perform the particle analysis count. i am interested in the particle count and area of each particle on the image.
after i get these values i want to plot them on the graph. so no of particles on the X axis i.e. starting from 1,2,3 .. 150/n and the then plot the area of each particle on the Y axis in pixels.
 
it should be straight forward i just tried wiring the particle count on the X axis graph, and area on the Y axis, however no line was drawn.
please help thanks 
0 Kudos
Message 1 of 12
(3,342 Views)

Hi farhan,

to insert values into the xy graph you have to cluster two arrays and connect the result with the graph. Did you do it? Can you show your code?

Mike

0 Kudos
Message 2 of 12
(3,341 Views)

hi MikeS81,

Yes I use a Build XY Graph function which outputs a cluster of 2 elements. it takes in X and Y input which i connect the particle count and pixel measurements. 

I have attached a screenshot of the code.

thanks

0 Kudos
Message 3 of 12
(3,338 Views)
Hi farhan,
please attach only "real" jpgs or pngs and not renamed bmps. Thanks. Smiley Wink
I´m not familiar with all express vi´s, but you connect only one x value. You can also do it without using the express vi.
 
Hope it helps.
Mike
0 Kudos
Message 4 of 12
(3,333 Views)

hello,

i did try using your example however it still does not work. im sure they must be examples where data obtained from particle analysis is shown on graphs.

the problem i am having is the bundle of points to joining to XY graph. can it be that particle count is int32 but the problem is particle measurements which is a 2d array . how do i convert this 2d array to something so it should work on the graph.

0 Kudos
Message 5 of 12
(3,314 Views)

Hi farhan,

which information from the 2D array do you want to see in your graph?

Mike

0 Kudos
Message 6 of 12
(3,309 Views)

ok to simlify things again, i am using the IMAQ particle analysis function and am interested in these outputs:

1. number of particles which is Int32

2. Particle Measurements which is a 2D array.

how should i represent the above data on a XY graph.

0 Kudos
Message 7 of 12
(3,306 Views)

Hi farhan,

that´s what we see from your image. Smiley Happy What type of data contains the 2d Array and how do you want to present it in the graph? What do you wanna see in the graph?

Mike

0 Kudos
Message 8 of 12
(3,304 Views)
the 2d array is of particle measurements. i want to see on the x axis the number of particles and then on the y axis for each particle the particle measurement (area in pixels). and should draw a line. and thats about it.
0 Kudos
Message 9 of 12
(3,297 Views)

Hi farhan,

can you upload a vi which contains a 2d array with your received values?

Try to help.
Mike



Message Edited by MikeS81 on 07-29-2008 01:35 PM
0 Kudos
Message 10 of 12
(3,295 Views)