glovato,
Yes, you need to separate the code into two VIs. You'll need a writer in your real-time app and a reader in your computer application. Also, sharing VIs or even screen captures of your code will help other provide you with more detailed assistance.
If you search the LabVIEW Example Finder for "streams" you'll find a reference project that may provide the answers you need.
Regards,
James
PS. This type of question is better suited to the NI Forums (http://forums.ni.com/) instead of the community pages.
Message was edited by: James@Fann
Tech Advisor - Automation
LabVIEW 5.0 - 2020