LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What port # does Labview use for TCP/IP communication?

I'm getting back into using labview and I'm trying to start off real simple.  I have a product that communicates to outside world via snmp communication.  Eventually I'd like to be able to send and receive SNMP commands to this device, but for right now I'm just trying to establish communication.  I put together a real simple .vi that just consists of the "TCP/IP Open" .vi and I insert the IP address of the device I'm trying to talk to along with some error handling.  The TCP/IP Open vi wants to know the specific port to use to communicate on and I do not know what to use.  I'm not all that familiar with network/ethernet communication, and I'm not sure if this port is specific to the Labview program on the PC or if it's dynamic and set by each new device I'm trying to talk to depending on that devices specific IP.  I created a while loop around this vi that will increment port number, starting at 0, and continue until no error message is given.  I get an open port starting at 21, 22, 137, etc.  Sometimes these ports are available and the device respons through a vxWorks terminal, and other times that same port delivers an error message.  I also have a sniffer program running in background to monitor network traffic and I can see the port activity on sniffer program increment synchronously with the loop in labview.
 
So basically, I need to know if there is a specific port number I should be using when attempting TCP/IP communication using labview.
 
If anyone has any information or good resources to check out for snmp/MIB communication, I would appreciate it.  I've already seen the third party snmp toolkit that is available for $500, but I was hoping to make it myself or it would eventually get bundled into a new release of labview.
 
Thanks for any help.
0 Kudos
Message 1 of 4
(8,345 Views)
There are some examples in the example finder under networking->TCP&UDP
 
try the TCP communicator
 
if you are connecting to a device over ethernet you need to specify an ip and a port of the machine you wish to talk to  both of these values are required
 
the local port is the port that your machine uses to communicate to the other machine's ip and port
the local port input you can specify but if you leave it disconnected then labview picks the next available one
 
- James

Using LV 2012 on Windows 7 64 bit
Message 2 of 4
(8,339 Views)

You might also want to look at this for common and registered ports.

I haven't used it in several years, but the SNMP Toolkit is a bargain at $500.

0 Kudos
Message 3 of 4
(8,332 Views)
Did you ever find the tools you needed to simplify your SNMP MIB interactions?  I have spent the last few days working on a project involving an SNMP enabled piece of test gear... and have found some nice tools for examining the MIB and playing with the device at the other end.

Paul
0 Kudos
Message 4 of 4
(8,261 Views)