From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the properties of plots in XY graph via VI Scripting

Solved!
Go to solution

Hi,

 

Is there any way out to change the properties of XY graph plots through VI Scripting? 

 

From main VI, I create an XY graph in another VI through VI scripting. I now want to change the Plot legend names, and their styles etc. I notice that these properties can be set up in the new VI (See screen shot Graph Property Node in NEW VI.jpg). However, I couldn't see these properties by calling the property node of XY graph reference in main VI (see screen shot ).

 

Thanks for the due response.

 

Regards

HB

0 Kudos
Message 1 of 5
(3,245 Views)

Hello HB,

 

I see plot.names when I scroll down a bit further. No scripting required.

Hope this helps.

 

Uli

 

 

0 Kudos
Message 2 of 5
(3,220 Views)

Hi UliB

 

Thanks for the reply. 

I want to do it through VI scripting. As I mentioned in my post that plot.names is visible to me as well when creating a property in the same VI. However, I want to set the property of XY graph from another VI through VI Scripting. 

I hope you got my point.

 

Regards

Hasan

 

0 Kudos
Message 3 of 5
(3,216 Views)
Solution
Accepted by topic author HB.

Hello HB,

 

maybe you need to use a XYGraph refnum rather than a graphChart refnum.

 

Uli

Message 4 of 5
(3,212 Views)

Thanks UliB

 

It solved the problem!

 

Regards

HB

0 Kudos
Message 5 of 5
(3,197 Views)