09-06-2017 06:52 AM
09-06-2017 07:28 AM
I created a fresh VI, I got the same error.
Here is what you asked for
09-06-2017 07:38 AM - edited 09-06-2017 07:39 AM
09-06-2017 07:58 AM
Hi,
Thank you for the tip, I'll try to find which other device have opened the port (I am connected to a network of several computers communicating at the same time).
For your second note, the thing is I can't use another port actually.
Regards,
Romain
09-06-2017 08:38 AM
09-06-2017 08:38 AM - edited 09-06-2017 08:49 AM
Hi again,
I checked about the use of the different ports, and I saw that the port 6000 was used thanks to netstat -a -n -o in cmd. But after removing the process (as you can see below) that used the port (which was the NI domain service) , I still got the error 60
Edit : Nevermind, the error was occuring when I run the VI on Compact RIO. But if I run the VI in the laptop, it just works ! The other computer doesn't receive my message yet but it is an other issue. Thank you very much !
09-06-2017 08:49 AM - edited 09-06-2017 08:49 AM
09-11-2017 10:14 AM
Hi everyone,
I am communicating with a piece of hardware through UDP protocol. The information given by it is a value of a physical quantity (pression of the system). I run on Labview 2014 SP1 on Windows 7
I began to run the VI on my laptop and it worked. Now, I want to run it on compact RIO because the algorithm controlling the physical quantity will run on it. But when I run the same VI on cRIO, error 60 (port already in use) appears on the open UDP VI. I can't change the port due to the hardware I am communicating with.
I think that use of the port is due to the cRIO (I am new to networks actually). And I don't know how to remove the process except from my computer using these commands in cmd (which is useless now that the VI is running on cRIO).
netstat -ano | findstr :{num_port} taskkill /PID {PID_using_mum_port} /F
So I am trying to do is killing the task (probably coming from the cRIO) which is using the UDP port I need (6000) so to be able to open a connection on it.
So I tried to use the System Exec VI to use the commands from above and the equivalent in Linux. But it gave either nothing or the error 2 (full memory). Also, I was not able to read anything on the outputs of the System Exec VI. Looking at the example VI didn't help me with my problem.
If you have other solutions to kill the process, I can try it too. It is not important if I have to do it manually.
Thank you for your help !
09-11-2017 02:04 PM
09-12-2017 02:57 AM
Hi,
I finally understand what you meant by using a different port. I thought that I couldn't open a connection on the port A with the UDP Open VI and write on the port B with the UDP Write VI. I thought it had to be the same port in both functions.
Now it works. Thank you