LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph annotations and comments

Hi,

 

I'm working with create annotations and comments for the graph.

User point to the graph points (X- timestamp, Y-value) and create annotation and comments & save those info so next run, it will load the info to the graph if the file selected.

 

There's 2 problems facing here:

1. When mouse goto the graph point, the Time string follow the mouse pointer will display the timestamp & value, however if try to goto graph palette to zoom in the graph, the Time string seem cover the palette. Any idea or suggestion?

2. How to create & save the annotations and comments? any link or example i can refer to. 

 

Thanks,

Simon

0 Kudos
Message 1 of 3
(2,202 Views)

Hi Simon,

 


@SimonChin wrote:

1. When mouse goto the graph point, the Time string follow the mouse pointer will display the timestamp & value, however if try to goto graph palette to zoom in the graph, the Time string seem cover the palette. Any idea or suggestion?

2. How to create & save the annotations and comments? any link or example i can refer to. 


1. You need to detect when the mouse cursor leave the plot area: check for mouse position vs. graph plot area size!

2. Look for the exaple VIs in the example finder. There is atleast one example explaining how to use graph annotations!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,166 Views)

Hi GerdW,

 

Thanks for suggestion.

 

I have a question about the attach vi.

 

When i try to create annotations from the xy-graph, it never appear @ event structure "XY graph: Annotation menu selection (Item Tag or Item path), so i need to create event structure xy-graph:shortcut menu selection (app) item path.

What is the different between both? 

 

thanks,

Simon

0 Kudos
Message 3 of 3
(2,117 Views)