LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph Grid updating to the X value

Hi everyone! While customizing XY Graph, I`ve met some problems with the grid updates. Due to the fact, that X-value comes in Time+Date format (not from system time) (and Y value is a Temperature value) I need a Graph, that:
- shows only 10 values per display and than moves right automatically - I will use X scrollbar to see previous values
- shows the Major Grid only up to X-value incoming to know exact Time (for example, I want to know that at 18:33:28 I had 29,6 degrees, and don`t need to guess the exact time in the interval shown.

 

I`ll be very grateful for your help!

0 Kudos
Message 1 of 4
(1,928 Views)

Attach your code and somebody will try to fix it.

 

(A x-scrollbar is for user interaction, but you also want it to scroll right automatically. You can't have both unless you resolve the conflict who should win. Will the data grow forever? Are the points spaced equally in time?)

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

Theoretically, points should arrive at the same frequency, but due to the loss of part of the packets or the periodic shutdown of the equipment that sends them, they don`t. I can`t attach the code - there are some special corporate moments need to be kept private. The conflict between Scrollbar and automoving right seems to became a headache... 

0 Kudos
Message 3 of 4
(1,911 Views)

See this Nugget by Tim

 

A Waveform Data type chart will do what you need AND if you suspend updates the scroll bar will work as you needed until you start applying more updates to the chart.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(1,891 Views)