C#之雷赛控制板卡-在线变速
·
C#之雷赛控制板卡-在线变速


/// <summary>
/// 在线变速
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button4_Click(object sender, EventArgs e)
{
// 1.获取参数
// 1.1 选择的轴
ushort axis = Axises[comboBox1.SelectedIndex];
// 1.2.获取新速度
double newVel = Convert.ToDouble(tbxChangeV.Text);
// 1.3.获取新的变速时间
double changeTime = Convert.ToDouble(tbxChangeT.Text);
// 2.调用函数设置变速的速度与时间
LTDMC.dmc_change_speed(CardNum, axis, newVel, changeTime);
}
更多推荐

所有评论(0)