LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an xy graph using AI Sample Chan inputs in a while loop.

I am running a harware timed PID loop. Inside the loop I have two inputs that are from AI sample channel vi. I can chart either input individually with time as the x-axis but cannot get them to combine into an xy graph. It appears that the timing of the loop resets after every sample so there is no timing information to go along with the inputs. The outputs from the AI inputs are in waveform but without their own timeing info. I just want to have an xy graph of both that is sycnhronized.
0 Kudos
Message 1 of 3
(2,572 Views)
You could convert your time -stamped data to simple 1D arrays, then chain them into queues before feeding an XY graph. See the attached example vi and the simulation loop. Here two processes generate sinus waves (15 data points)that are further combined into a Lissajou graph (200 points).
Hope this helps.
CC
Chilly Charly    (aka CC)
Message 2 of 3
(2,572 Views)
and here is the sim
Chilly Charly    (aka CC)
0 Kudos
Message 3 of 3
(2,572 Views)