LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Execution of a displaying loop during the elapsed time of a sub VI

Hello,

I have a sub VI that is running during a certain number of time. During this time it is updating some indicators on my front panel.
When this sub VI is running, I want to be able to use the values of those indicators with waveform charts.

For now, what is happening is that my waveform charts are updated only with the first value of my indicators from the sub VI.
I tried to use occurrences to use the waveform chart inside a loop during the elapsed time of my sub VI but it didn't worked. It seems that the waveform charts and the sub VI didn't run completely in parallel. It was more one before the other.

Does anyone has an idea how to solve this problem?

Thanks, Meach
0 Kudos
Message 1 of 2
(2,292 Views)
Are your waveform charts on your subVI or on the parent VI? If they're on the parent VI then the charts won't be updated until the subVI finishes. To get around this pass a control reference of the waveform chart to the subVI so the subVI can write directly to the chart. Open the Example Finder (Help -> Find Examples) and search for "references". The example called "Property Nodes" is an example on using references.
0 Kudos
Message 2 of 2
(2,280 Views)