LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a scrolling vertical line to an XY graph

Solved!
Go to solution

Been scratching my head over this for a couple of hours so I figure it's time to ask the big brains here.

 

I have a piece of test equipment. Every hour I update an XYgraph with the percentage of tests failed in the last hour. The x-axis shows time from 0:00 to 24:00. The user has asked if I could display a vertical line that shows the current time. (So at 09:00 there would be a vertical line displayed, and at 10:00 it would jump to that place on the x-axis, and so on, skipping back to 0:00 at midnight.

 

I feel this should be straightforward but I can't figure it out. Anyone got any tips or tricks to suggest, or links to previous posts about doing this?

 

0 Kudos
Message 1 of 3
(592 Views)
Solution
Accepted by topic author another_novice

Hi novice,

 


@another_novice wrote:

The user has asked if I could display a vertical line that shows the current time.


Use a cursor in the graph…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(574 Views)
Solution
Accepted by topic author another_novice

Just use a cursor. Make it only vertical and not moveable by the user, then position it using property nodes as needed.

0 Kudos
Message 3 of 3
(573 Views)