Need help with UR5 & Robotiq 2F-85 gripper control via HMI

Hello everyone,

I need some assistance with my setup.

I am working with a UR5 robot equipped with a CB3 controller, purchased in February 2018, running Polyscope 3.5.3. Attached to the robot is a Robotiq 2F-85 gripper, and on top of the gripper, there is a Robotiq force sensor. The gripper is connected to the CB3 controller via a USB-A cable, while the CB3 controller is linked to a Windows laptop via an Ethernet cable.

I am developing an HMI using Python 3.10 on Windows 10 and utilizing the ur_rtde Python package for communication with the controller.

Issue:
I am unable to activate, open, or close the gripper via the HMI. I have tried multiple versions of code available on various forums, but none have successfully controlled the gripper.

I am communicating via PORT 30004 using RTDE, but I cannot even execute basic gripper movements.

Could someone please provide guidance or share a working example of the code to activate and control the gripper via HMI?

Answered a very simular Question the other day, and you might have a similar issue?

But please also try sending your script to the primary or secondary interface.
https://www.universal-robots.com/articles/ur/interface-communication/overview-of-client-interfaces/