I am working on the CAD file of the machine from VC.
I added a statistical function to the properties to the machine I’m working on.
In addition, we were able to check the System State for Busy, Idle in the statistical properties.
I think we can use these two to draw Busy Percent from a statistical graph.
What I want is for the Machine to change the status to busy at the start of the process and to change the status to Idle when the process is over.
I’d like to do this in a Python script.
Is there a way to change the status of the Machine I’m working on in Python to Busy, Idle?
We applied it with the relevant content and confirmed that the state is applied well.
However, when I updated the initial state to Idle at the start of the simulation and pulled the machine’s BusyPercent data with statistics, I was able to see BusyPercent rise in the beginning.
That may have something to do with the servo.move command, not sure if it automatically sets the sate to “busy” if a servo is moving something. Although you are setting the state to “idle” right afterwards, the servo.move is a “blocking” function, meaning that it consumes time before going to the next line (to set the state to idle)
I don’t think it’s a matter of Servo’s movement.
I made python and statistical Behaviours for Component with no function to test this statistic and found BusyPercent rising in the beginning.