LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read data from subvi

hello,

i've got an data aquisition and put my data into a subvi. i do this to avoid global variables.
so when i read data to save it into a binary file i can't wrote data into this vi. so data is lost.

is there any solution??

markus
0 Kudos
Message 1 of 6
(3,010 Views)
Hi

Why should the data be lost? If I understand you correctly, you wire your data to either your sub-vi or to the write function, but you can wire it to both of them.

If this is not what you are looking for, provide more information. Extracts of your code would be most helpful.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 6
(3,008 Views)
in the attachement there is the used subvi.
this subvi is used in a loop where the data acquires.
in a parallel loop the vi will be read to save the data.
0 Kudos
Message 3 of 6
(3,002 Views)
Hello Markus,

you have to seperate the communication and the data saving.
Each component in it's own loop.

Marko
0 Kudos
Message 4 of 6
(3,002 Views)
the attached vi creates data and save the data. when i read the data it wont be the same.

markus
0 Kudos
Message 5 of 6
(2,995 Views)
Could you attach your vis as LV7.0?
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 6 of 6
(2,990 Views)