Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Python WaitDI command causing program crash

#1
Hi,
I've got a Python script for a UR3e robot from which I am successfully controlling digital outputs using the setDO command. However, I also need to read an input as part of my script. Using the I/O buttons on the graphical interface, I can do this successfully, however, when I try to use WaitDI within my Python script, the script crashes with the error message below (after successfully switching on a digital output in the preceding line!)

I haven't got any ideas on what could be causing this so any feedback or options to try would be greatly appreciated.


Attached Files
.png   roboDK_DI.png (Size: 22.78 KB / Downloads: 15)
.png   Script.png (Size: 61.83 KB / Downloads: 14)
#2
By looking at the error message in the image you shared I assume you are using the driver. Did you connect to the robot first?

Can you share the project and the connection log?
#3
(06-06-2025, 03:51 AM)Albert Wrote: By looking at the error message in the image you shared I assume you are using the driver. Did you connect to the robot first?

Can you share the project and the connection log?

Hi - thank you for your reply. Yes, I was connected to the robot first both within the graphical interface 'Connect' and within the script itself. Please find attached the log that outputs when I run the script, alongside a simplified project file containing the pin control script as attached above and a script that uses the inbuilt RoboDK I/O commands, which works fully.


Attached Files
.png   RobotLog.png (Size: 35.6 KB / Downloads: 12)
.rdk   UR3e_IO_Station.rdk (Size: 2.19 MB / Downloads: 13)
  




Users browsing this thread:
1 Guest(s)