02-06-2024 04:26 AM - edited 02-06-2024 04:27 AM
VI attached. Using Labview 2022 Q3.
Trying to open a TCP connection with a Cognex InSight 7802 camera.
The VI has an error 56 (source TCP Read) which happens after I try and send the admin login.
Flow order - TCP open connection --> TCP Read, CRLF, 100 bytes (this outputs Welcome to InSight 7802 Session 0) --> TCP Read, 6 bytes (This outputs User:) --> TCP Write, attempting to input admin\r\n --> TCP read, 10 bytes (Error 56). If it was performed properly, the below should be output.
I've tried varying byte amount, varying the order etc but am stumped!
Feels like it isn't sending the 'admin' command or something.
Any help would be greatly appreciated.
Solved! Go to Solution.
02-06-2024 02:16 PM - edited 02-06-2024 02:16 PM
Is that screen shot from a Telnet or SSH session? Telnet or SSH is NOT raw TCP/IP but has some more or less complex signaling (SSH also has transport encryption!)
02-07-2024 06:00 AM
Your error is in string constant! You cannot write \r\ln in a normal string constant. You have to activate code display!
02-20-2024 04:15 AM
Thanks a lot - worked immediately!
01-06-2025 05:11 AM
Have you been able to display the Cognex image on LabVIEW or also show the field strip?