Beispiel #1
0
        private void AsuMotionSetOutput(object sender, EventArgs e)
        {
            ushort Sync = 1;

            short[] AnalogOut = new short[2] {
                123, 234
            };
            ushort[] DigitalOut = new ushort[2] {
                123, 234
            };

            int ret = AsuInvoke.AsuMotion_SetOutput(handle, Sync, AnalogOut, DigitalOut);

            switch (ret)
            {
            case 3:
                Print("配置运动卡模拟量输出和数字量输出 成功");
                break;

            default:
                Print("配置运动卡模拟量输出和数字量输出 失败");
                break;
            }
        }