Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66961

reconnect network stream

$
0
0

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

 


Viewing all articles
Browse latest Browse all 66961

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>