Class creating the connection for the Piezos from Physical Instruments (PI) and implementing the commands for writing and reading. The connection can be done via socket or via usb. If USBPort is not set in the device properties, the connection will be done via socket.