LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CONTINUOUS DISPLAY OF 2-DIM ARRAY INTO AN XY GRAPHIC

I am plotting two 1-dim array in an xy graphic into a while loop (Reading continuous voltage for two sensors). I need to see the continuous trace of the plot but I only can visualize the intantaneous value of x versus y. The graphic is not keeping the trace. I really appreciate any help. thanks in advance.
Asahel Banobre asahelbl@hotmail.com
0 Kudos
Message 1 of 7
(4,169 Views)
You'll have to create a buffer (.e.g. a circular one) to hold all the data you want on the graph and then write the arrays from the buffer to it.

Check out the following thread:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=5065000000050000004D760100&HTHREAD=000095821&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
0 Kudos
Message 2 of 7
(4,169 Views)
If you want the graphic to keep the trace it is better to use a chart.
I join a little example of a comparison between a chart, XY Graphs and Graphs. If you don't want to bother with X axis and have a 1D array to plot I recommend you to use a Graph (neither XY Graph nor Chart)

Hope this helps !
Julien
0 Kudos
Message 3 of 7
(4,169 Views)
hello, I have the same problem, but I don't understand well, who can explain to me,thanks in advance 
0 Kudos
Message 4 of 7
(3,799 Views)

Look into these examples:

 

C:\Program Files\National Instruments\LabVIEW 8.x\examples\general\graphs\charts.llb\Charts.vi

C:\Program Files\National Instruments\LabVIEW 8.x\examples\general\graphs\gengraph.llb\XY Graph.vi

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 5 of 7
(3,795 Views)
If you use the Express xy graph, you can uncheck "clear data on each call" and a history will be kept.
0 Kudos
Message 6 of 7
(3,779 Views)

in fact, I would like to  show some  seconds, after that it restart graphic, is like électro-cardiogramme.

0 Kudos
Message 7 of 7
(3,763 Views)