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.