12-17-2013 04:38 PM - edited 12-17-2013 04:39 PM
Hi everyone,
I'm trying to communicate with a Cognex ADV100 camera using the Telnet VIs in the Labview Internet Toolkit. I'm using Labview 2012.
I don't have any issue talking to the camera using Telnet from the windows command line interface, but when I try to use the Labview Telnet toolkit I can't get past the login prompt. When I use labview I receive the message asking for the login user name, but when I send the user name I never get the prompt asking for the password.
Any ideas on what I could be doing wrong?
Thanks!
12-17-2013 05:48 PM
Try adding an end-of-line character to the string you send.
12-17-2013 07:11 PM
Hi nathand,
What are the characters for "end-of-line"? I tried adding both a \r and \n to the end of the string but I still got no response (ex: admin\r\n)
12-17-2013 07:13 PM
When you added "\r\n" did you set the mode of the string constant (right-click) to "'\' Codes Display" first? If not, then you sent the characters \r\n instead of sending a carriage return and a new line. Alternatively, there are constants for both carriage return and line feed in the string palette. Concatenate one or both of them onto the end of the string you send.
12-18-2013 12:22 PM
nathand,
Ah, the mode of the string constant was the problem. Thanks for the help!