private void checkBoxJogLeft_CheckedChanged(object sender, EventArgs e) { if (checkBoxJogLeft.CheckState == CheckState.Checked) { m_tic.set_max_speed((int)numericUpDownJogSpeed.Value); m_tic.set_target_position((int)numericUpDownPosition.Minimum); buttonGoto.Enabled = false; buttonHome.Enabled = false; } else { m_tic.set_target_velocity(0); m_decelerating = true; } }
/// <summary> /// Set the speed of the stepper motor /// </summary> /// <param name="velocity">The velocity of the stepper motor</param> <!-- the max value for the peram is 100000.000 pulses/s --> public void SetVelocity(int velocity) { ticController.set_target_velocity(velocity); }