LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Telnet with cognex camera - LV2012

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!

Download All
0 Kudos
Message 1 of 5
(4,958 Views)

Try adding an end-of-line character to the string you send.

0 Kudos
Message 2 of 5
(4,936 Views)

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)

0 Kudos
Message 3 of 5
(4,918 Views)

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.

0 Kudos
Message 4 of 5
(4,915 Views)

nathand,

 

Ah, the mode of the string constant was the problem. Thanks for the help!

0 Kudos
Message 5 of 5
(4,867 Views)