private void Button_DebugSend_Click(object sender, RoutedEventArgs e) { //Config new tags ServoController.IJOG_TAG tagServo1 = new ServoController.IJOG_TAG(); tagServo1.ID = 0xFD; //broadcast ID tagServo1.mode = ServoController.JOG_MODE.positionControlJOG; tagServo1.playTime = 0x3C; tagServo1.PositionGoal = 0x0002; tagServo1.LED_BLUE_ON = false; tagServo1.LED_GREEN_ON = true; tagServo1.LED_RED_ON = false; System.Collections.Generic.List <ServoController.IJOG_TAG> TAG_LIST = new System.Collections.Generic.List <ServoController.IJOG_TAG>(); TAG_LIST.Add(tagServo1); ServoController.I_JOG(Comport, TAG_LIST); }