12-16-2013 10:32 PM
Good evening.
I am developing a distributed application that executes on a cRIO and
a Windows computer. I want the cRIO to pump data to the Windows
computer. Both the cRIO and the Windows computer run LabVIEW
2012.
It has been suggested that I use a network stream to provide the
data to the Windows computer. I have implemented a solution based
on examples provided in the example finder. Executing the host and
the target works.
I need to be able to disconnect the Windows computer from the cRIO
and then at some later time reconnect to the cRIO. I have not been
able to do that without restarting both the cRIO and the Windows
programs. When I attempt to reconnect without restarting the cRIO
execution, the Windows computer software reports the error,
-1950678941.
I am unclear where I am going wrong. My assumption is that when
the Windows computer disconnects from the cRIO, I need to
destroy the network stream on both ends and then when the
Windows computer reconnects I need to re-establish the reader
and writer. I have also tried to have the writer (on the cRIO)
continue to pump data (of course this doesn't work while the
Windows computer is disconnected) without destroying the
writer endpoint. This also failed.
Does anyone have any suggestions on how to "start" and "stop"
network streams without stopping and restarting the software
running on the cRIO?
Thanks,
Hamilton Woods
12-17-2013 12:12 PM
Check out this white paper on Lossless Communication with Network Streams: http://www.ni.com/white-paper/12267/en/ It has information about how to architect what you want with the reconnection. Have a great day.
12-17-2013 08:44 PM
Thanks for your help,
Hamilton Woods