LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect data appearing on waveform chart

Solved!
Go to solution

I have two waveforms charts in my vi, both plot current vs. voltage. After I build an array of data points, I send them to waveform charts. The datapoints are completely incorrect when plotting (Scale, no points, not autoscaling) although, when I export my data to excel it is perfect. Any possible solutions on how to fix this? I've attached my vi for reference (sorry if it's a bit messy). I'm using tab control and my problem is falls under the case "Ids vs. Vgs".

0 Kudos
Message 1 of 5
(2,694 Views)

If you want current on one axis and voltage on the other, you need to be using the XY Graph. A chart is not at all appropriate. Turn on Context Help.

Message 2 of 5
(2,693 Views)

@Dennis Knutson wrote:

If you want current on one axis and voltage on the other, you need to be using the XY Graph. A chart is not at all appropriate. Turn on Context Help.


Thanks, I got it to work, BUT I'm trying to get the graph to update inside of a while loop. The problem is the cluster the XY Graph accepts needs to be placed outside of the loop for indexing purposes. Any way around this?

0 Kudos
Message 3 of 5
(2,672 Views)
Solution
Accepted by jdamato3

You can cheat and use the Express XY Graph or use a couple of shift registers to build the separate X and Y arrays. There is also the shipping example called XY Chart.

Message 4 of 5
(2,670 Views)

@Dennis Knutson wrote:

You can cheat and use the Express XY Graph or use a couple of shift registers to build the separate X and Y arrays. There is also the shipping example called XY Chart.


You are the man, got it. Thanks for the help!

0 Kudos
Message 5 of 5
(2,661 Views)