LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xy chart with no time axis--new to labview

Hello,

I have a very simple question which I cannot figure out, despite reading everything about it on the forums.  I have data inputs from two different sources occuring at the same time.  I would like to plot the amplitude of one source against the amplitude of the other in real time, but not with respect to time.

I tried using the xy chart and passing the things to arrays first, but it didn't work, so i reverted back...I have a while loop going in the background.

If anyone could help, I would really really appreciate it...also, if there is an easy way to do things, that would be best, since I am new to labview and do not understand many of the advanced features.

Thanks,

Mike
0 Kudos
Message 1 of 4
(2,981 Views)
Hi inkljlkj (is that random or what?).
Fortunately your solution is very easy.  Using the diagram that you have posted as a jpeg, right-click on the Build X-Y Graph vi and select 'Properties'.  You will only have one option: clear the check box.  This allows the VI to accumulate each data point you send to the graph.  If you want to make a button that flushes the data and starts over, you will need to do something a bit more complicated, otherwise, the graph will just continue to accumulate a bigger and bigger plot until it bogs down.  I've built some cool-looking 'tracer' plots that accumulate only the last, say, 50 points and plots them in real-time, allowing one to see the dynamic history of your data.
Good luck,
Matt
0 Kudos
Message 2 of 4
(2,965 Views)
Im confused as to your issue. Is it that the data isnt plotting and you are getting a single point on your XY? Or are you asking why time isn't being plotted on the X-axis?

The first problem was answered by MatthewDC above.

In your program you are plotting amplitude vs. amplitude... I would find this a very difficult way to compare two amplitudes. personally.

EDIT: nevermind... after I read your post a couple more times i understand that is the functionality you are looking for.

Message Edited by MJBrehm on 09-14-2006 03:19 PM

0 Kudos
Message 3 of 4
(2,957 Views)
Thank you so much for the help.  It works now!!

Smiley Happy
0 Kudos
Message 4 of 4
(2,942 Views)