Need to place sub VI in VI a number of times
> The problem is the subVIs do need to run at exactly the same time each
> having an output which is connected to a waveform chart.
> That's why the only way i could think of solving my problem is to open
> the subVI, change the values and then have it programatically save
> itself to a different name.
> Also is it possible to change the properties of the waveform (caption
> etc.) from inside the subVI, NOT the VI in which it is contained.
If the VIs need to run at the same time, make the subVI reentrant. That
way the calls run independent of each other, as if they were unique
subVIs with different names, but they have exactly the same code
specification. Fixing bugs is much easier when you don't have to make
the same change over and over in all of the copied subVIs.
As for the inputs and outputs, it sounds like you want your subVI to
return a waveform that you wire to a graph on your top panel. If you
want to set additional properties on the graph, you can either compute
the values in the subVI and return it, like the data, and have the top
level VI set all of this at once, or you can pass a control reference to
the graph into the subVI and let the subVI make changes during its call.
To get a control reference, popup on your graph, choose
Create>>Reference, an on your diagram will be a reference terminal that
you can drag onto your subVI panel, connect to the subVI connector pane,
and then wire to on the top level diagram. On the subVI diagram,
connect this green wire to property nodes or invoke nodes.