02-24-2020 04:52 AM
I have a RT target which is connected through a switch to the router, to which my computer is connected. I am running a labview code in the RT Target and my computer, and I am right now using Share Network variables to communicated between these two. But I am loosing data very often, so I am planning to move to Network Streams. But for some reasons I am not able to connect with the RT. I tried multiple sample codes including the ones provided by the labview, but no use.
Please somebody suggest what could be wrong. I am adding a sample code that I tried here
Thanks
Sankar
Solved! Go to Solution.
02-24-2020 07:50 AM
A while ago, I answered a similar question (for a similar situation) here . See if this information is relevant to your situation. If you are still having problems, attach the VIs (no pictures, please) showing the code you are using to create the Network Stream Reader(s) and Writer(s). There are fairly specific rules for doing this (you can find out "how to" by using LabVIEW Help).
Bob Schor
02-24-2020 10:06 AM - edited 02-24-2020 10:07 AM
Looking at your image, I'd suggest that you do the following:
Note that if you set a specific number of elements to read, you won't have this timeout behaviour (read the Detailed Help for the Read Multiple node to get more details, but basically having the default -1 elements is a special case that immediately returns always).
03-03-2020 03:13 AM
Actually, it was not an issues at all, I didn't know that the Network stream was not installed when I installed all the other stuff. Now I installed it and it's working fine.
Thanks very much for your time and support
Sankar