LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plotting a single point

Hello all...

I am trying to create a labview VI that reads the xy corrdinates of
single point.

The VI enters a main loop and constantly reads the coordinats and
displays the
xy coordinates of the point.

I tried doing this by kludging and now I feel I am in a trap.
Maybe there is a better way.

For now...

I read the x, y position.
I create a 1 D array for the y-value
I create a bundle of:
x value
hardwire of a 0
the y value

and wire this bundle into the waveform graph.

All is fine.

But now I have to wire several points onto the waveform graph.

But this is no longer working.

Can someone advise me what to do?

thanks
jennifer.
0 Kudos
Message 1 of 6
(4,159 Views)
I'm a little unsure about what you are doing. To simply display a pair of coordinates. Take the x and y values and make a 1D array of each. Bundle these two together and wire to the XY Graph. If you want to add other plots to the same graph, take the bundle(s) created from them and wire them along with the original XY bundle into a build array function and wire the output of that into the graph. Good luck.
0 Kudos
Message 2 of 6
(4,160 Views)
Hi Jennifer,

It sounds like you are trying to build a scatter graph of points defined by
multiple x,y coordinate sets. If that is so, why not use an X/Y Graph
instead? Simply take each x,y pairs, bundle them into a cluster, make an
array of the clusters and feed it to the XY Graph. Change the plot type
(right click on the "Plot 0" indicator at the upper right of the graph) and
from "Common Plots" choose the plot without connecting lines.

Hope this helps...

Jim




"Jennifer Elaine Crozier" wrote in message
news:3BDDA267.6FE9CAC9@kahuna.sdsu.edu...
> Hello all...
>
> I am trying to create a labview VI that reads the xy corrdinates of
> single point.
>
> The VI enters a main loop and constantly reads the coordinats and
> displays the

> xy coordinates of the point.
>
> I tried doing this by kludging and now I feel I am in a trap.
> Maybe there is a better way.
>
> For now...
>
> I read the x, y position.
> I create a 1 D array for the y-value
> I create a bundle of:
> x value
> hardwire of a 0
> the y value
>
> and wire this bundle into the waveform graph.
>
> All is fine.
>
> But now I have to wire several points onto the waveform graph.
>
> But this is no longer working.
>
> Can someone advise me what to do?
>
> thanks
> jennifer.
>
>
>
>
0 Kudos
Message 3 of 6
(4,159 Views)
Jennifer,

Hi, practically the answer the previous colleagues wrote is right, I recently made this quick example for a customer and I wanted to share it to you. It has an array of points that represent XY coordinates, so then I create from each point a cluster of 2 components, and then an array of clusters and insert this into the XY graph. You can avoid all the copies of the same function by using a for loop, this example is only to demonstrate how to do it, but if you want it optimized or simplified use a for looop.

Good luck!

Nestor Sanchez
Applications Engineer
National Instruments
Nestor
0 Kudos
Message 4 of 6
(4,159 Views)
Hi Dennis,
I was checking the possible solutions through the internet for mz problem. Here you r suggesting exactly what i do... the only difference i want to use the bundled cluster for the input of buffer chart vi. but it doesn allow wiring.. I dont understand it...
what would be the reason?
thanks
0 Kudos
Message 5 of 6
(3,915 Views)
looser:
 
Could you please post a screenshot or a VI that shows the difficulty you are experiencing?. I do not know where you found buffer chart.vi. Please let me know so that we can help you further.
 
Regards,
 
Rudi N.
0 Kudos
Message 6 of 6
(3,894 Views)