Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

VBAI Development Toolkit, Custom Plugin: How to get TCP data / connection ID configured in VBAI Communication Manager?

Hello,

 

I would like to create a custom plugin using the VBAI Dev. Toolkit. I'm using VBAI 2010 with LabView 2010.

 

In this step I would like to send a TCP message over a TCP connection defined in VBAI Communication Manager. How can I get the open Connection ID? Or do I have to open the connection in the Plugin? In this case, how to get the defined TCP data from the Communication Manager?

 

Thanks for your help.

 

Best regards,

Yellow

0 Kudos
Message 1 of 4
(3,528 Views)

Unfortunately, there is currently no way of accessing the TCP session declared in the Vision Builder Communication Device Manager from a custom step.

 

-Christophe

0 Kudos
Message 2 of 4
(3,519 Views)

Ok, thanks for your reply.

 

In that case, would it be possible to open a new connection in a custom plugin and send custom data streams over that connnection?

 

Regards,

Yellow

0 Kudos
Message 3 of 4
(3,508 Views)

Yes you could. You can even create a simple VBAI inspection that uses the TCP step and then migrate it to LabVIEW to see how VBAI opens the connection and uses it in the TCP step. It may be more involved if you want to allow the user to configure all the TCP settings (IP Address/port) and have all your custom steps use the same settings (maybe save them to an INI and have all steps use the same INI to get the settings).

 

Hope this helps,

Brad

0 Kudos
Message 4 of 4
(3,503 Views)