Grasp and Release using UR script via RTDE

Hello.

I’m using VC 4.4 connected with UR RTDE to analyze a script using server to simulation.

I’m trying to get the robot to grasp and release an object using the following statement: set_configurable_digital_out(1,True). I added the variable actual_digital_output_bits to the simulation, but when a start the simulation the value received by the simulation fluctuates between true and false, therefore making the robot to release the object before the false statement.

Is this fluctuation between the values because of the rate the controller sends data to Visual Components? Or is there a configuration 'm missing?

Best regards

The update rate is 125hz, so if values are jumping all over the place consider adding some delay