06-09-2007 08:29 PM
06-09-2007 08:54 PM
What kind of program is listening on port 1064 of the other computer? Is this also a LabVIEW program?
06-09-2007 10:17 PM
The other program listing on port 1064 is not a LV program. It sends out a command and then displays what value was read from the command sent. It kind of works like this:
Program listing on port 1064 sends command "What position are you"
Other networked computer responses with "Postion whatever"
I am trying to make sure the command the computer listing on port 1064 sends is the right command. I have already tried to use etherreal to captuers the packets, but received no codes which coorespond to what I am trying to verify.
Thanks,
Adam
06-09-2007 11:04 PM
OK, you need to be a bit more specific.
Do you have any documentation on the server (e.g. a link to a manual)?
06-09-2007 11:36 PM
06-11-2007 02:50 PM
Hi Adam,
1) Please go to Tools >> Options >> VI Server: Configuration and check the box for TCP/IP. Also, be sure that the Port matches the one in your VI.
2) Please try turning off any firewalls as they can block communication over the network. If this works for you, you will need to add the port as an exception.
I hope this helps get your application running. Please post back if you are still having problems.
Regards,
Elizabeth S.
Applications Engineer
National Instruments
06-11-2007 05:22 PM
06-11-2007 07:12 PM
I don't think you should configure any VI server, because once you configure a service port you can no longer use it as a source port for outgoing connections. That error code makes sense because of that.
Let's go back to the beginning:
(1,2&3) A program that listens on a port is a server. It cannot randomly send out commands! All it can do is sit there and wait for incoming connections on that port. Once an oncoming connection is established between the client (your labview program, source port is irrelevant) and the server (the non-labview program, destination port 1064), they can communicate IF they follow a defined protocol to exchange information. If you don't have any documentation, you won't get very far. Most likely the "What position are you" is a welcome message confirming to the client that it connected to a suitable server as expected (and not e.g. to some random ftp or web server). Now the client can send its position. Do you know how the commands are formatted an terminated?
(4) An ethereal trace would certainly help, especially if you have some other equipment (non-labview) that can successfully communicate with that server. What happens if you would telnet to port 1064 of the server? do you see anything recognizeable on the terminal screen?
Are you even sure that all this uses TCP? Maybe the communications are actually in UDP, a stateless and connectionless protocol. In this case, the server can send out broadcasts or multicasts to trigger responses from the local clients.
Where does the server come from? Is it a commercial product? Who made it?
06-12-2007 09:19 PM
I'm going to try and use ethernet to usb converters, that way I can modify an existing program I wrote that reads via VISA serial ports. Thanks for the help.
Adam
06-20-2007 10:53 PM