LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP Listen vi does not work in Labview RT 7.0

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

 

0 Kudos
Message 1 of 7
(3,293 Views)

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. 

National Instruments
Applications Engineering
0 Kudos
Message 2 of 7
(3,264 Views)

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 

 

 

0 Kudos
Message 3 of 7
(3,252 Views)

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 

0 Kudos
Message 4 of 7
(3,250 Views)

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

 

0 Kudos
Message 5 of 7
(3,230 Views)

Hi Alik,

i´m a bit confused now. How can you use the dos command on your real time system?

Mike 

0 Kudos
Message 6 of 7
(3,226 Views)

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

 

0 Kudos
Message 7 of 7
(3,217 Views)