Is there a function call that can be used to see if a simulation is currently running or some other way for RoboDK to tell me if a simulation has completed?
Thread Rating:
How to check if a simulation is running? |
08-10-2023, 04:19 PM
Yes, you can check if a robot or a program is running by calling the procedure Busy.
You can find more information and an example here: https://robodk.com/doc/en/PythonAPI/robo....Item.Busy
Thanks! Here's some C# code that Runs a program if it is not running, or un-pauses it if it was already running but paused by setting speed to 0:
Code: private void RunSimulation( string prog_name )
Thank you for sharing. You could also check if the Simulation Speed is 0 or too small before overriding this value.
Example: Code: if (RDK.SimulationSpeed() < 0.001) { |
Users browsing this thread: |
1 Guest(s) |
Copyright © 2024 RoboDK Inc.
Powered by MyBB