07-12-2011 06:09 AM
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
07-15-2011 05:31 PM
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))
07-16-2011 03:28 AM
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.
07-16-2011 12:46 PM
Could it be possible that autoscaling is making it look this way, but it really is plotting the correct points?