LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing tcp/ip access in run?

Hello everyone,

 

I'm trying to change the machine access list in a VI-Server in run (programmatically). I can add clients in run without any problems, but i cant remove clients without restarting the TCP-listener witch would cause all clients connected to get disconnected. Anyone know a way around this?

 

LabVIEW 8.6 (windows and linux)

 

Thanks,

Tomas

0 Kudos
Message 1 of 5
(2,799 Views)

Hi,

 

I tried also to change the access list with a property node, this works fine in my small example:

 

Access List.PNG

 

Can you explain in more detail what you want to do (what is already opened, etc ...) or try to post a modified example which shows the behaviour.

 

Thanks and best regards

Alex

NI Switzerland

0 Kudos
Message 2 of 5
(2,777 Views)

Hey,

Thanks for responding.

 

I can try to explain a bit more what I'm trying to do. I'm trying to build a VI-Server system with a main server and a backup server on different machines and even different platforms (windows and linux). I would like to change the access list when the server is running. eg if a client are making so many connections that the performance are going down, I would like to be able to "kick" that client from the server without causing problems for the other clients. I have been experimenting a bit with this and found some strange behaviour, I can add machines/adresses to the access list without problems, but i can't remove machines/adresses (put a "-" before the names) without restarting the tcp/ip-listener. This can cause that the clients get a timeout (depending on the clients refresh rate) and jump over to the backupserver (not good).

 

Picture showing what i have to do to change the tcp/ip-access in windows:

Change_access2.JPG

 

Another issue regarding linux. When I restart the server (running on linux) when there are clients connected, the tcp/ip-listener get a 60 second timeout. It's not a big problem since the clients automaticly jump over to the backup server, but it is a bit annoying. Could there be a setting in a .ini file or a environment variable or something?

 

 

Cheers,

Tomas

 

0 Kudos
Message 3 of 5
(2,769 Views)

Hi,

 

I´m not quit sure, but what happens if you try to remove the machine from the list using a delete from array function instead of "deny" with a minus? I tried a little bit around and thought this might fit! Please make a small test and let me know what you think!

 

The other question might take some time. I will try to get one from R&D in Austin answering this question.

 

Best regards

Alex

NI Switzerland

0 Kudos
Message 4 of 5
(2,758 Views)

Hi,

Thanks for the help:smileyhappy:

 

I tried doing what you suggested, but I still can't get clients to disconnect without restarting the tcp/ip-listener. Seems that it doesent make a difference deleting them from the array or changing the + to - before the addresse. Strange...

 

 

Cheers,

Tomas

 

 

0 Kudos
Message 5 of 5
(2,756 Views)