LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timed data output

I qm programing a simple program driving the voltage of a motor. The voltage must increase linearly. To do that, I would like to output a voltage value for example every 50 ms. To check if my program is working correctly, I have tried to output my data in a wave form graph. But the all the data appeared suddenly at some point instead of appearing gradually on the graph. Where is the problem ?
0 Kudos
Message 1 of 3
(2,476 Views)
Your problem is that you placed your graph outside the for loop and so the data does not display until the for loop completes. If you want to display data as it's being generated, you should use a chart inside the loop. If you want to use a graph, then inside the for loop, build an array with each iteration and wire the graph to that.
0 Kudos
Message 2 of 3
(2,476 Views)
The output of your loop does not go to the waveform graph until the loop finishes. To be updated for every loop iteration the display must be inside the loop - but then you have a fundamental problem because it is your loop that is creating the array of data.

If you use a Waveform CHART instead of Waveform Graph you could put it inside the loop and update it with a single point rather than the array.

Les.Hammer@CompleteTest.com
0 Kudos
Message 3 of 3
(2,476 Views)