05-03-2011 08:22 PM
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.
05-04-2011 12:24 AM
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:
Sub.vi:
05-05-2011 08:27 AM - edited 05-05-2011 08:33 AM
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!