LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph's property in SubVi doesn't take effect on MainVI?

Hello,

 

I have a main-vi which uses a sub-vi. The sub-vi is displaying graph. I have customized the property of the graph in SubVI, ie. the XScale and cursor position. This setting does take effect on the graph of the sub-vi. However, it doesn't take effect on the graph of main-vi.

 

Must I set the property of the graph from main-VI?

Is there any way to get what I want by  setting only from Sub-VI?

 

Thank you.

Download All
0 Kudos
Message 1 of 3
(2,204 Views)

Hello,

 

the SubVI doesn't set the propertys for the Graph in MainVI because it doesn't know that it should do it.

 

To set the properties of a graph in the MainVi you can use a refernece:

 

Main.vi:

 

Main.png

 

Sub.vi:

sub.png

 

Download All
0 Kudos
Message 2 of 3
(2,193 Views)

Hey yoppy,

 

NWOmason is correct, in that the easiest way to do this is by passing a reference to the sub VI. Here is an article on how to do this if you need more information. Have a great day!

John B.
Embedded Networks R&D
National Instruments
Certified LabVIEW Developer
0 Kudos
Message 3 of 3
(2,168 Views)