LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Xy graph 1 spot in each axis

Hi all:

 

I'm plotting voltage and current in a XY graph. The fact is that instead of plotting just a spot (voltage/current coordinates), it plots 1 spot in the x axis(making 0 the Y axis), and in the next while bucle iteration it plots in the Y axis (making 0 the X axis). When I'm debugging using step by step option it plots it correctly, I think maybe its a time problem.

 

 Im using NI-elvis to adquire the measurement.  Im getting mad with this so please a need help.

 

Thanks so much

0 Kudos
Message 1 of 4
(2,648 Views)

Do you mean that you're trying to plot, for instance (V, I) = (4, 3) and instead it's plotting (4, 0) and then (0, 3)?

It might help to get an answer if you posted code and screenshots.

If slowing it down works, and you don't need it to go really fast, you could try putting a delay in your loop. (Programming: Timing: Wait (ms))

0 Kudos
Message 2 of 4
(2,613 Views)

If the outcome is different when using step-by-step execution, you most likely have a race condition (or the graph update is only temporary and gets overwritten quicky with something else). Please show us a simplified version of your code and make sure it contains typical data.

0 Kudos
Message 3 of 4
(2,602 Views)

Could it be possible that autoscaling is making it look this way, but it really is plotting the correct points?

0 Kudos
Message 4 of 4
(2,593 Views)