Giseli Ramos Posted September 2, 2008 Report Share Posted September 2, 2008 Hi, I have a compiled program (not mine) in VB which acts as a server that receives commands from my LabVIEW application via TCP port. So, these programs run in differents computers in a local network. They works fine when the two computers are Windows. If my LabVIEW program runs on Linux, it is not able to establish a communication with the VB program. The cause of the problem maybe that the VB program uses Winsock? I already tested my connection between a Linux and a Win computer using the examples TCP communicator, so the connection is fine. Thanks! Quote Link to comment
Eugen Graf Posted September 2, 2008 Report Share Posted September 2, 2008 May be you can try to use Data Socket VIs insted of TCP/IP ? Quote Link to comment
Phillip Brooks Posted September 3, 2008 Report Share Posted September 3, 2008 QUOTE (Giseli Ramos @ Sep 1 2008, 04:13 PM) I already tested my connection between a Linux and a Win computer using the examples TCP communicator, so the connection is fine. This may be and endian problem, http://forums.lavag.org/-t1993.html&view=findpost&p=6721' target="_blank">see here... Quote Link to comment
LAVA 1.0 Content Posted September 3, 2008 Report Share Posted September 3, 2008 The problem is that you can't establish a connection. Strange, what error code is generated on the LabVIEW side? Ton Quote Link to comment
Giseli Ramos Posted September 3, 2008 Author Report Share Posted September 3, 2008 QUOTE (Ton @ Sep 2 2008, 01:20 AM) The problem is that you can't establish a connection. Strange, what error code is generated on the LabVIEW side?Ton When I try to connect to the VB server using LV, it simply don't connect, I get timeout. Eugen, I tried something with DataSocket, but I'm not satisfied and really want to use TCP things. Don't have any way really? Philip, thanks for the tip. I will see here if is this problem and will post here the results. Quote Link to comment
LAVA 1.0 Content Posted September 3, 2008 Report Share Posted September 3, 2008 QUOTE (Giseli Ramos @ Sep 2 2008, 12:28 PM) When I try to connect to the VB server using LV, it simply don't connect, I get timeout. Do you have the right port and number? It looks like there is no-listening at that port. Could you post a screenshot? Ton Quote Link to comment
Giseli Ramos Posted September 3, 2008 Author Report Share Posted September 3, 2008 QUOTE (Ton @ Sep 2 2008, 07:53 AM) Do you have the right port and number? It looks like there is no-listening at that port.Could you post a screenshot? Ton Well, I think that have listening, because my VB program succeeded to establish a communication when I use the example TCP Communicator in the same platform (win X win). The screenshot of the example is here. It doesn't work when is Win X Linux... Strange! Quote Link to comment
Scott Carlson Posted September 3, 2008 Report Share Posted September 3, 2008 QUOTE (Giseli Ramos @ Sep 2 2008, 07:26 AM) Well, I think that have listening, because my VB program succeeded to establish a communication when I use the example TCP Communicator in the same platform (win X win). The screenshot of the example is here. It doesn't work when is Win X Linux... Strange! I definitely don't think you should leave the TCP behind. This sounds more like an OS issue than a Labview issue. #1 What Flavor of Linux are you using. (I can be more helpful ) #2 My first suspicion is that you have a firewall blocking ports... Have you looked into this? -Scott Quote Link to comment
Giseli Ramos Posted September 3, 2008 Author Report Share Posted September 3, 2008 QUOTE (Scott Carlson @ Sep 2 2008, 08:58 AM) I definitely don't think you should leave the TCP behind. This sounds more like an OS issue than a Labview issue. #1 What Flavor of Linux are you using. (I can be more helpful ) #2 My first suspicion is that you have a firewall blocking ports... Have you looked into this? -Scott Hi Scott, I'm using Fedora 7... and I'm glad that you remembered me of the firewall issue! On Linux, it is OK, but in Win, the firewall rules was not correctly applied... Now it is working fine. Many thanks to all and I learned some useful things in this topic such as the endian problem... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.