LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programmatically determine the cursor legend refnum?

I am determining the controls and such of a front panel programmatically as I have a need to be able to modify panels quickly without the manual editing necessary. I need to know how to determine the refnum of a cursor legend for a waveform or XY graph in a programmatic fashion rather than by creating a reference node.
0 Kudos
Message 1 of 4
(2,680 Views)
That is a good question. The cursor legend reference is not returned if you get a list of all the object references. The graph is, so you can get its reference and get the cursor legend reference from it. You probably only need to look at the ones with a visible property set to true.
0 Kudos
Message 2 of 4
(2,680 Views)
I've tried to get the cursor legend reference from the graph reference but apparrently I am not jumping through the correct hoops because I get errors. Unlike some reference nodes(clusters for example), I do not see the appropriate elements to find the refnums of the associated objects or elements associated with the cursor legend itself. Does anyone have any sample code that works to illustrate the refnums of cursor legends and/or other pieces associated with graphs?
0 Kudos
Message 3 of 4
(2,680 Views)
In the case of cursors, LabVIEW does not keep a refnum for each cursor. They are modified by changing the cursor properties of the graph reference. Below is an example that demonstrates the modification of cursor properties.
0 Kudos
Message 4 of 4
(2,680 Views)