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

Skip DI wait automatically when running simulation

#1
I have a program that i transfer to the robot and i has a few "Wait_DI()" calls for syncing with the gripper etc. These waits are not needed in the simulation. 
Is there a way to automatically skip these waits when running the simulation so i don't have to manually right click them and press "Skip DI Wait" for every cycle of the program?


Attached Files Image(s)
   
#2
It is not possible to automatically skip these waits for digital input states. However, you could have a script running that automatically sets the corresponding station parameter to skip the wait.

Example:
Code:
while True:
    RDK.setParam("enable_actuator", 0)
    time.sleep(0.1)
#3
Thank you i didn't think about adding a thread for this.
i ended up just creating a program via the gui rather than a python script since it's cleaner. The program just has two instructions that is "insert code -> enanble_actuator = 0" and a wait instruction for 100ms. Run the program on a loop and it all works out.

Thank's again for the help
#4
Perfect! That makes sense, I didn't think it would be easier to make this program running in a loop using the UI. Thank you for your feedback.
  




Users browsing this thread:
1 Guest(s)