LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question on how to plot/chart/graph xy data

Solved!
Go to solution

Hello-

 

I currently have a VI that reads in information through the DAQ Assistant into two waveform charts (load vs. time and displacement vs. time). I would like to be able to take this information and plot another chart (load vs. displacement). I have converted the dynamic data sets from the waveform charts into two arrays (load and displacement), and then bundled them into an array of clusters. I have tried adding a waveform chart to the array of clusters, however it does not appear to be plot. (This is all located in a loop so that it should constantly update as the test is being performed.)

 

I would appeciate any help you may have. Please let me know if you have any questions.

 

Thank you for your time.

 

 

 

 

 

0 Kudos
Message 1 of 12
(4,110 Views)
if you just want a chart put a biuld array to a chart
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 12
(4,105 Views)
Solution
Accepted by Buckeye362

A chart is just wrong if you want to plot one array against another. That is what an XY Graph is for. Just take your existing arrays and bundle them together. If you turn on Context Help (and it really should be on all of the time) on the block diagram and move your mouse over the graph, it shows you exactly how to wire the data. Since a graph has no history, you will have to implement that if necessary. There's an example called XY chart or simply search the board. Numerous examples that use a couple of shift registers. The Express XY Graph can be used as well.

 

Don't know why you want this in a separate loop. Placing it next to your chart writes would make as much sense.

0 Kudos
Message 3 of 12
(4,097 Views)

and just for your reference to use the chart you need to have a cluster of dbl not and array of cluster of dbl.... but dennis is correct if you want to plot one array against another

 

here is an example of xy-graph.

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 4 of 12
(4,090 Views)

Thank you for your help.

 

Would you please direct me to the "XY Graph" function? When I search the functions palette, all I can find is "Plot XY" and "Plot Multi-XY." (Both are picture plots.)

0 Kudos
Message 5 of 12
(4,088 Views)

Be sure you're using the correct terms.  In LabVIEW, a CHART is different from a GRAPH.

 

A CHART has its own history buffer and can construct a plot (or several) from feeding it one point (or several) at a time.

 

A GRAPH has no such history; when you feed it new data, the old data is forgotten.

 

There is no such thing as an X-Y chart.

 

 

The X-Y graph is polymorphic; meaning it can accept different kinds of data. 

For details; use the EXAMPLE FINDER to open FUNDAMENTALS - GRAPHS AND CHARTS - XY GRAPH.vi

 

There you can see four ways to connect data to an X-Y graph. 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 6 of 12
(4,080 Views)
if you type in the forum plotting xy-graph you will find tons of examples
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 7 of 12
(4,072 Views)

Thank you all for your help. I looked at the example posted in this thread (as well as the ones on the forum and in the Labview Examples) however, I do not appear to have access to "XY Graph." Is there another way of approaching this problem?

 

0 Kudos
Message 8 of 12
(4,064 Views)
X-Y Graph is an indicator you put on your panel, not a function you put in your code.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 9 of 12
(4,062 Views)

Functions palette?

 

It's on the controls palette. Right next to the chart, and waveform graph.

 

Graph Palette.PNG

0 Kudos
Message 10 of 12
(4,058 Views)