def SetCPCmd(api, cpMode, x, y, z, velocity, isQueued=0):
cmd = CPCmd()
cmd.cpMode = cpMode
cmd.x = x
cmd.y = y
cmd.z = z
cmd.velocity = velocity
queuedCmdIndex = c_uint64(0)
while(True):
result = api.SetCPCmd(byref(cmd), isQueued, byref(queuedCmdIndex))
if result != DobotCommunicate.DobotCommunicate_NoError:
dSleep(2)
continue
break
return [queuedCmdIndex.value]
從DobotDemoV2.0中取用的函式 在腳本中以dType.SetCPCmd(api, cpMode, x, y, z, velocity, isQueued=0)呼叫後內部該給的參數也給了 但是只要一執行後 程式便會無回應且無法切斷機械臂的連接 請問可以提供關於這個函式的範例嗎