1. I have a subVI which contains a loop that reads data from a device for a specified amount of time. 2. I would like to graph this data in real time on the front panel of the main VI.
So is there a way to pass data from inside the loop of my subVI to the graph of my main VI before the subVI has finished executing, and if so how do I do this?
Global: If I write to a global from my subVI wouldn't it not update the graph until my main VI reads from said global and therefore wouldn't do anything until the subVI has finished executing, or am I misunderstanding you?
The best way to do this is to pass a reference to your main graph or indicator to the subvi. The subvi can then write to a value property node of the reference in real time. Every time the property node is written to, the main indicator will be updated.