コード例 #1
0
ファイル: Frm_Main.cs プロジェクト: JasmineZK/AsuMotionDevice
        private void AsuMotionSetCurrentPostion(object sender, EventArgs e)
        {
            int ret = AsuInvoke.AsuMotion_SetCurrentPostion(handle, ref AsuMotionPos);

            switch (ret)
            {
            case 0:
                Print("设置当前坐标 成功");
                break;

            case 1:
                Print("设置当前坐标 失败,设备句柄为空指针,一般因为没有打开设备导致");
                break;

            default:
                Print("设置当前坐标 失败");
                break;
            }
        }