LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Graph

I'm trying to plot the reading of two input modules against each other and I'm having some difficulty and getting very weird results, I've tried the waveform, chart and xy graph and I can't get any to work any guideance would be appreciated thanks

attached is picture and code

Download All
0 Kudos
Message 1 of 8
(3,979 Views)
try bundling both arrays to a cluster and wire the numeric cluster (brown wire) to the graph.
0 Kudos
Message 2 of 8
(3,969 Views)
ok I tried what you said and it graphed something but, it wasn't right, the y axis was right, but the x axis was wrong, cause I know that I had at least a value of 10 and as you can see the x axis didn't go over that far

here are the pics and code

Download All
0 Kudos
Message 3 of 8
(3,963 Views)
The Current Linear Measurement & Current Load Cell Reading are single values.  They are not arrays. The graph plotted those two points; thus a line.
0 Kudos
Message 4 of 8
(3,956 Views)
they are single values, but they are being read a bunch of times and I want to collect each time their being read and plot Current Load Cell Reading vs Current Linear Measurement, I guess I need to save the values being read but I'm not sure how to do that

Thanks for your help
0 Kudos
Message 5 of 8
(3,951 Views)
Hi rock,

you need to build arrays from your data to plot them as xy-graph... See attachment!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(3,946 Views)
Thank you very much for the help, one last question is there any way to reset the graph when the program is rerun (ie. so there is no line on the graph when you start the program)

thanks
0 Kudos
Message 7 of 8
(3,917 Views)
Hi rock,

I don't have LV at hand, so just this:
Usually a graph only shows what you wire to it. So either you have to "empty" the values (arrays from shift registers?) wired to the graph or right-click the graph, delete any content (data operations) and set to default (also by right-click).
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 8
(3,912 Views)