If the device vendor has a set of C, C++ or C# library for connection to their device, use Automation C# or VB .Net scripting function block to reference these libraries and call up the necessary functions to connect to the device.