LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error trying making a connection through TCP/IP

Hi, i have build a measurmentsystem with Schneider Elektric devices. All kinds of elektrical data are measured by a powermeter PM710. This device is coupled with the Ethernet gateway EGX100 with RS485. This gateway at his turn is coupled with the internal network. When i am trying to get the values out of this gateway i get an error 63: Possible reason(s):

LabVIEW:  Serial port receive buffer overflow.
=========================
LabVIEW:  The network connection was refused by the server. For TCP/IP, make sure the server is running and listening on the port you are trying to use. Firewalls can also cause a server to refuse a connection. For VI Server, make sure you have enabled VI Server from Tools>>Options>>VI Server:Configuration.

 

How can i fix this problem? I have added a jpeg from my program

0 Kudos
Message 1 of 29
(11,279 Views)

Hi There

 

Move the TCP Open function to the outside of the while-loop and try again.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 29
(11,242 Views)
Hi, this didn't have any result. I've added som jpegs from my settings for tcp/ip maybe there is something wrong with that? I'm not that familiar with this so.
Download All
0 Kudos
Message 3 of 29
(11,240 Views)

Hi stefvg,

as Chris already said, you should open the connection outside the loop. Now you open a new connection every iteration, but you close only one after stopping the loop. Where do you get the error? You should also connect the error from the open TCP/IP function to see if this runs successful.

 

Mike

Message Edited by MikeS81 on 01-26-2009 11:24 AM
0 Kudos
Message 4 of 29
(11,237 Views)

I've already changed that, but that didn't help. My error is in the "open-block"

in attatchment my new vi

0 Kudos
Message 5 of 29
(11,233 Views)

Hi stefvg,

are you sure you use the correct remote adress and the correct port? how do you insert the adress? Sorry, i saw it now. Can you ping your device? Are you in the correct subnet?

 

Mike

Message Edited by MikeS81 on 01-26-2009 11:32 AM
0 Kudos
Message 6 of 29
(11,230 Views)
The company where i am making my thesis for has given a ip-adress to the device. So i am quite sure that this adress is correct. The remote port i am not so sure of. Where can i find this? I've just used the adress that is given in the vi server: configuration in the tools --> options
0 Kudos
Message 7 of 29
(11,225 Views)

You don't need the VI server configuration to talk to a device. You only need that for VI server functionality, but in this case you don't need the TCP functions.

What you need to know to establish a TCP connection to a device is the IP address of the device and the port it listens on. Without that you won't be able to connect.

 

Message Edited by dan_u on 01-26-2009 11:42 AM
0 Kudos
Message 8 of 29
(11,217 Views)
The adress is ok i think because the company gave me the adress and when i am trying to change this, i get another error. I don't realy know how i can find the right remote port. I've searched the documentation already but i can't find anything. Is there some way i can retrieve this?
0 Kudos
Message 9 of 29
(11,213 Views)

I've found the remote port after all. Now i dont get an error anymore in this block, but now i get an error in my ehternet master query vi. I get error 56 occurred at TCP Read in MB Ethernet Receive.vi:2->MB Ethernet Master Query.vi:1->registers uitlezen.vi

Possible reason(s):

LabVIEW:  The network operation exceeded the user-specified or system time limit.

How can i fix this? I've already tried to change my wait time but this did not help.

0 Kudos
Message 10 of 29
(11,180 Views)