LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

managing TCP connection

I've designed a measurement bench connecting my PC to an instrument via LAN
The program works well bul every time I extract the RJ connector and then
reinsert it, the connection ends.
Now I'm trying to make the program capable to reconnect automatically every
time a disconnection occurs, but without any results: in fact using only the
TCP OPEN CONNECTION and TCP CLOSE CONNECTION boxes i cannot reach my aim.
Anybody can help me?
0 Kudos
Message 1 of 2
(3,029 Views)
Dear new,

Thank you for contacting National Instruments.

To address your question, I'm assuming you're doing Remote Data Acquisition (RDA), a functionality included with LabVIEW, LabWindows/CVI and VI Logger. I found a resource that makes me wonder if what you're attempting to accomplish is possible. I've attached it with this posting.

Under "RDA Installation Considerations", this tutorial states the following. You can power on and off the RDA Clients without affecting the state of the RDA Servers to which the client has assigned local device numbers. Also, you can load and unload the Remote Device Access Server, but you must refresh MAX and click the Test Resources button to reconnect the remote device from the RDA Client to the RDA Server (Th
is I don't think you can do programmatically). In addition, it adds if you assign a local device number to a remote device, NI-DAQ attempts to connect to the RDA Server each time it loads in the RDA Client. If the RDA Server is powered off, the RDA Client appears to stall during this process. This stalling is the timing out of the attempt to connect to the server computer. When the connection fails, any attempt to use the remote device will result in a -10340 (noConnectError) status error code, and you must repeat the configuration process (I also don't think you can do this programmatically).

Let me know if you have any further questions or if this does not resolve your issue.

Thanks again and have a great day!

Chad AE
Applications Engineer - National Instruments
0 Kudos
Message 2 of 2
(3,029 Views)