LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Show data from SubVi immediately in MainVi

I have the problem that I create same data in my SubVi (stored in an array) and my MainVi show this data not until the SubVi is closed. Is it possible to see this data immediately after creation? In the attached file you can find a SubVi which creates same data, which shoud be show in the MainVi. The only possibility I know is to PopUp the SubVi while it creates data, but I think there must be a better way....

(I hope my english is good enough..)

Robert
0 Kudos
Message 1 of 4
(2,665 Views)
Look at the "Queue" VI's.

These can be found int the

Advanced>>>Syncronization

pallette.

They will do what you want.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 4
(2,665 Views)
Hi Robert! Your English is fine! To see data in your top-level VI from your sub-vi you should use control references (I am assuming that you are not running the the RT OS - they are not supported in LabVIEW RT once the VI is deployed). I was looking for some info regarding control references and found another developer exchange thread that discussed this (see link below).

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=506500000008000000D63E0000&ECategory=LabVIEW.LabVIEW+General

Also, here is a relatively thorough knowledgebase with linked tutorials.

http://pong.ni.com/public.nsf/websearch/5AC45C38CE49D68A86256937006EE6DC?OpenDocument

Please let me know if this answers your question.

Zenerell
0 Kudos
Message 3 of 4
(2,665 Views)
Thanks for your help. I did it now with global variables. It seems to work. This References and queues seems to be very complicated...

Robert
0 Kudos
Message 4 of 4
(2,665 Views)