LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot data to chart with real time axis

Like this

 

 

Example.png

Tim
GHSP
Message 11 of 23
(1,914 Views)

No, the time has to be numeric data.

 

Also, you are going to have a problem using an XY Graph anyway. As the posted examples show, a graph expects to have an x array and a y array. Look at the shipping example called XY Chart to see how to update a single point at a time or go back to using a regular chart. If your data is acquired on a regular basis, you can set the t0 and dt of the chart with property node. Look at the example called Real Time Chart.

Message 12 of 23
(1,914 Views)

This is a more complete thought

 

 

Example.png

Tim
GHSP
Message 13 of 23
(1,907 Views)

Although I do like to use clusters, they are not always necessary.

 

 

You could clean up theX-axis by using a negative offset in a scaling factor property node.  You could take a timestamp before the while loop and use the value as a negative offset. 

 

Messy:

 

 

Message Edited by Ray.R on 12-10-2009 10:28 AM
Download All
Message 14 of 23
(1,877 Views)

simplifiedBD.png

 

Where do you get this ?

Message Edited by rty on 12-14-2009 09:22 AM
0 Kudos
Message 15 of 23
(1,852 Views)
Right click on the shift register and make a constant.
Tim
GHSP
Message 16 of 23
(1,844 Views)

Or the long way:

 

Inside the Functions Palette, under Arrays, place an array constant on the block diagram.  Go to the Numerics and place an numeric constant inside the array constant on the block diagram.  Right click the array constant and change the representation to Double..

 

 

(I'll have to try those steps to see if I got it right...  😉  )

Message 17 of 23
(1,833 Views)

Oh **** i made all those steps and still not working :S

 

The XY graph isnt even ploting.

0 Kudos
Message 18 of 23
(1,829 Views)
You can not leave the tunnel at the end of the case in the graph as use default if not wired. You need to switch to the false case and attach the wires all the way through.
Tim
GHSP
Message 19 of 23
(1,819 Views)
Still not working after that :smileysad:
0 Kudos
Message 20 of 23
(1,802 Views)