Labview programming
Our project is LIDAR, based on physics. The common equipment connects to a server that consists of various sensors. The server gives complete information about the equipment such as temperature, humidity, etc. The server and laptop are connected via a local network. Our job is to develop software using labview that communicates with laptop hardware. For this we need to connect the server to the laptop. We tried so many TCP / IP vi in labview. This requires both server and client programs. In the server program, we are using TCP Listen, and in the client program, we are using a TCP connection. What IP and port address should be passed to TCP listening and TCP coonization?
source to share
The IP address and port should refer to the server as shown in this snippet (replace port with your chosen port and localhost with your server address):
There are two code blocks in the above example code, the TCP server should run on your server and the TCP client should run on your laptop. Then the remote address must be changed to your server's address. Using the above example only shows how the connection is made and the one piece of data passed before the connection was closed. You will need to add additional code to enable communication between the server and laptop to provide the required functionality in your application.
In LabVIEW, you will find some examples of how to use the TCP function, from the top menu select Help and Find Examples ... and then use the Search tab in TCP and you will see Simple TCP.lvproj 'which should give you what will help you.
source to share
If your project does not specifically require the use of TCP Listen / Open VIs, you may want to consider some of the built-in networking features that come with LabVIEW.
I have had some luck with the LabVIEW network shared variable files where you can, among other things, connect a client front panel control to a variable shared by the server and LabVIEW takes care of all the TCP scene functions.
Here's one web page about this feature: http://zone.ni.com/reference/en-XX/help/371361G-01/lvconcepts/ni_psp/
source to share