02-27-2013 10:19 AM - edited 02-27-2013 10:28 AM
Hi
I've got a quite complex program (for me!) with several sub VI's, the main VI calls a sub VI that is a while loop measuring pressure, each value is plotted on the waveform chart as it is measured in real time. I want to display this realtime chart in the main VI. However the waveform chart in the main VI only shows the last value suppplied from the sub VI after the sub VI has finished its loop execution.
Is there a way to setup the waveform chart in the main VI so that it displays data in realtime i.e duplicates what the sub VI chart shows?
Thanks
Solved! Go to Solution.
02-27-2013 12:15 PM
It seems quite simple.
Make a control reference of the waveform chart (by right clicking on the chart >> Create >> Reference) and pass it into the subVI from main VI. The sub VI must have a control reference terminal of the same type. Within the subVI, you can update the data using a property node. If you want to update the chart at every loop iteration, then use the property node inside of the loop.
03-05-2013 09:20 AM
Hi
Many thanks, as a newbie, I was unaware of this powerful functionality. This has sorted it.
Cheers
04-02-2014 07:12 AM
Hello! I have the same problem, but I have reed your solution without getting results and I don't know why.
Could anyone send me and example please!
Thanks!!!