Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with TCP I/O Function in Vision Builder AI

Hello everyone,

 

I've created an Inspection with Vision Builder AI and need to send some of the results to another machine which then shall contine to process my inspected parts.

Now my problem is, when I try sending the data I need using the "TCP I/O" Function in Vision Builder , the remote machine gets the data but cannot process it and displays an error. Now I have found that if I use the "Data Logging" in Vision Builder Function, all the Data gets transmitted without problems.

But in order to keep the data sent over the network as small as possible I dont want to use the Data Logging Function, furthermore it does not allow me to fully customize the string to send, resulting in way too much information.

Example:

I want to transmit the numeric value of one variable and it sends "Variables, Inspection Variables, <NameofMyVariable>, Value. etc.

 

Does anyone know whats different between those two Functions and if it is possible to change the settings of "TCP I/O" to make it work the same way as Data Logging? Both are using the same TCP Device.

 

Thanks!

 

Best Regards,

 

t0k

 

0 Kudos
Message 1 of 2
(4,479 Views)

Hi t0k,

 

thank you for using the National Instruments forum.

 

The core of your problem seems to be the error with your external program. You should examine what format of data your external program exactly requires and what it receives.

Is it possible for your external program to display the data received via TCP? This was easy if you used LabVIEW. In case your program does not allow you to see the data, you can use a network protocol analyser for seeing what data is send via TCP.

 

Wireshark is a free and powerful tool for analyzing network traffic.

 

Regards, Topper

0 Kudos
Message 2 of 2
(4,458 Views)