LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get updated data in sub VI in real time?

Hello.
I'm making application using Labview 7.0.
 
What I want to do is the data acquisition changing some parameters. I get the data each time
I changed variable parameters. I can do it in sub VI by inserting array component into 'for' loop.
As loop iterates, the parameter sets are changed, and new data is inserted into array by 'replace subset array'.
New data fills the array by each iteration.
 
However, I can't bring this result array to my main.vi. Sub VI gives me the result array only when
its processes are done. I want to display the data while parameters changing is still on
the way.
Are there any solution to get the output of sub VI while the it is not finished yet?
0 Kudos
Message 1 of 3
(2,878 Views)
Hi Joewun:

Yes, you can update that data in real time.

It's done using references and property nodes.

You can Create Reference of an array in your main VI

In your SubVI, create a new Input to an array reference, and insert a Property Node function into the For where you update the value, and select Value property.

This way when your array updates in the SubVI you will see the changes in your main VI.

Attatched Image:
Left: Main VI
Right SubVI.
Aitortxo.
0 Kudos
Message 2 of 3
(2,863 Views)

Yes you can

Use global variables for sending the data from the sub VI to Main VI

In th attached VI library, Run teh Main VI and observe how i am passing data from sub VI to main VI and also controlling teh start/stop of Sub VI using global viariables

Hope this helps

Regards

Dev

 

 

 

0 Kudos
Message 3 of 3
(2,862 Views)