08-21-2008 07:04 AM
I'm trying to use a TCP Listener to accept connections from another PC on the local network.
When running the program with Labview 7.0 all works fine and I'm able to receive IP packets from the remote PC.
However, when I run it in Labview RT 7.0, the TCP listener does not listen on the specified port.
Another issue - after running the program in Labview 7.0, and then trying to run it again with Labview RT 7.0, if the specified port
is the same, I get error 60: "The specified network address is currently in use."
I'd appreciate your help,
Alik
08-22-2008 01:13 PM
Hi alikm,
I am a little confused on what your set up is. When you say that you are running LabVIEW Real-Time, do you mean that you are running the program on a Real-Time target? How are you establishing that the project you are setting up is a Real-Time project?
Also, if you are trying to access one port at the same time using two systems, you will get an error that you are not able to do this, since you can only write to a single port once at a time.
Regards,
Stephen S.
08-23-2008 10:16 AM
Hi Stephen,
I'm running the program on LabVIEW Real-Time target which is the only one that tries to listen
on the given port. It listens to incoming connections from other non real time programs.
Thanks,
Alik
08-23-2008 10:22 AM
Hi Alik,
how do you check if the program use the correct port? Do you try to connect to your applciation and you get an error, or do you use other programs to check the used ports?
Mike
08-24-2008 03:54 AM
Hi Mike,
to check if the program listens on the port, I use the command: netstat -a (from the dos command line).
It lists all the TCP or UDP active ports and their status.
Alik
08-24-2008 03:58 AM
Hi Alik,
i´m a bit confused now. How can you use the dos command on your real time system?
Mike
08-24-2008 09:18 AM
Hi Mike,
Probably I have a wrong assumption on the way that the real time system operates.
I thought that the real time card uses the network adapter of the pc on which the real time system is installed.
Form your reply I understand that it is not the way it works. I would greatly appreciate if you could clarify the subject.
Thanks,
Alik