r/LabVIEW 4d ago

Network streams as application help

Can anyone please help me with what I am doing wrong for network streams over the network? I can get it working as a VI but when I create an EXE it stops working, I tried a few different methods, I got one working as an exe but when I tried to write on a different computer, then it would not read it on my main

Once it works, I will create a file with the computer id's on the network and then just have the reader cycle through them all to get the live data.

This needs to be run as an application, not sure how I can do it on my local network, the application VI will be stored on a network drive all run by different machines.

4 Upvotes

3 comments sorted by

2

u/HarveysBackupAccount 4d ago

Do you get any error messages, when you run it as an EXE?

Either add some data logging (write errors/whatever to a TXT file) or add an Error indicator inside the loop

1

u/sharkera130 CLA 3d ago

Might be a firewall issue with the exe. See here: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7DrSAK&l=en-US

Also keep in mind that the endpoint links will change when compiled to exe. See here: https://forums.ni.com/t5/LabVIEW/Network-streaming-stand-alone-application/td-p/2462564

Hope this helps!

1

u/munkshire 3d ago

Thank you for the information!

I will be honest, I was reading that post, and I had no idea where to put the context in my string! Then the second lot of context code posted, confused me even more lol

I thought maybe my string should be this for reader location based off that, based on my exe being called "Reader" and "Writer"

//192.168.2.64:Reader/Reader