LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reconnect network stream

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

 

0 Kudos
Message 1 of 3
(4,004 Views)

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. 

Alex D
Systems Engineer
Academic Research
National Instruments
0 Kudos
Message 2 of 3
(3,969 Views)

A post by reddog on the thread, Re: How to clear error -314101, helped me clear up the reconnection issue.

 

Thanks for your help,

Hamilton Woods

0 Kudos
Message 3 of 3
(3,945 Views)