I have a sub-vi that takes in 2 controls. First is a file path, identifying where to save a file to, and the second is a Waveform Chart control, that is the graph I want to print. I can save the image in the sub-vi using an invoke node, but the problem is, it isn't preserving the title,x, and y axis labels and other settings from what I passed in to the sub vi.
I also tried passing in as a reference, but was not sucesfful. Is there a way to save a graph as PNG in a sub vi, if the labels and other settings are set in the main VI?
The answer is to pass in a reference to the sub-vi. The sub-vi must use an invoke node, but not be bound to an actual control, so it uses the actual reference passed in, not the reference to the FP control.