Jump to content

Recommended Posts

Joost,

The first thing to determine is who is listening to an IP port and who will be sending data to it.

If Labview is the "server" then use the "TCP listen.vi"

Good place to start is in the function palette communication->TCP.

When this listen vi returns with someone who is connected, receive or send bytes using the functions "TCP read.vi" and "TCP write.vi".

For Java help I suggest to look into a TCP tutorial at the java.sun website.

Look into how to use sockets in java (class: Socket, probably in package java.io).

Hope this helps...

Oskar

Link to comment
Joost,

The first thing to determine is who is listening to an IP port and who will be sending data to it.

If Labview is the "server" then use the "TCP listen.vi"

Good place to start is in the function palette communication->TCP.

When this listen vi returns with someone who is connected, receive or send bytes using the functions "TCP read.vi" and "TCP write.vi".

For Java help I suggest to look into a TCP tutorial at the java.sun website.

Look into how to use sockets in java (class: Socket, probably in package java.io).

Hope this helps...

Oskar

Hi oskar, that was of quite a help for me too. I also want to know where does TCP-open comes into picture. what is the difference between TCP-listen and TCP-open as long as application is considered.

Link to comment
Hi oskar, that was of quite a help for me too. I also want to know where does TCP-open comes into picture. what is the difference between TCP-listen and TCP-open as long as application is considered.

TCP listen creates a socket and waits for incoming connections. This is in TCP speak the server application. TCP Open connects to a server and therfore is used in a TCP client application. In order to create a server which can simultanously handle several client connections you use the TCP Create Listener and TCP Wait on Listener which above mentioned TCP Listen combines but then only can support one connection.

To get some examples search in the LabVIEW example finder for TCP/IP.

Rolf Kalbermatter

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.