获取基准位置
AppLog.WriteInfo(page_name + ((System.Windows.Forms.Button)sender).Text + "[" + comboBox2.SelectedText + "]", true);
保存关闭
AppLog.WriteInfo(page_name + "保存关闭页面", true);
方向移动
AppLog.WriteInfo(page_name + "ROI检测框位置变化:上移动", true);
尺寸移动
AppLog.WriteInfo(page_name + "ROI检测框尺寸变化:高+", true);
旋转
AppLog.WriteInfo(page_name + "ROI检测框角度变化:角度+", true);
定位分数
string s1 = "定位分数";//手动修改
string s2 = label263.Text;//手动修改
decimal d1 = ((NumericUpDown)sender).Value;//自动修改
Form1.VisionSystemArr[Vi].VarGetDouble(s1, out double get_value);
if (get_value != (double)d1)
{
AppLog.WriteInfo(page_name + "的[" + s2 + "]由" + get_value + "变为" + d1 + "【" + comboBox2.Text + "_" + comboBox1.Text + "】", true);
}
定位分数2
string s1 = "标定二值化";//手动修改
string s2 = label10.Text;//手动修改
decimal d1 = ((NumericUpDown)sender).Value;//自动修改
Form1.VisionSystemArr[Vi].VarGetDouble(s1, out double get_value);
if (get_value != (double)d1)
{
AppLog.WriteInfo(page_name + "的[" + s2 + "]由" + get_value + "变为" + d1, true);
}
极性
AppLog.WriteInfo(page_name + "的" + label25.Text + "为" + comboBox3.SelectedText, true);
运行按钮
AppLog.WriteInfo(page_name + "点击" + "运行检测", true);
模板训练
AppLog.WriteInfo(page_name + "[" + textBox1.Text + "]" + "训练模板完成" + "(" + comboBox1.Text + ")", true);
模板训练2
AppLog.WriteInfo(page_name + "[" + ((Button)sender).Text + "]" + "训练模板完成", true);
选中训练框
AppLog.WriteInfo("选中" + ((ToolStripMenuItem)sender).Text, true);
模板编辑器
AppLog.WriteInfo(page_name + "点击" + "【" + ((System.Windows.Forms.Button)sender).Text + "】", true);
登录
AppLog.WriteInfo(page_name + "登录" + "操作员", true);
使用配方
AppLog.WriteInfo("使用配方:" + label_Name1.Text, true);
开启存图
Form1.VisionSystemArr[Vi].VarGetBool("开启存图", out bool test1);
if (!(test1 == uiSwitch1.Active))
{
if (uiSwitch1.Active)
{
AppLog.WriteInfo(page_name + "的[存图]由" + "关闭" + "变为" + "开启", true);
}
else
{
AppLog.WriteInfo(page_name + "的[存图]由" + "开启" + "变为" + "关闭", true);
}
}
复位检测框
AppLog.WriteInfo("ROI框复位居中", true);
进入
AppLog.WriteInfo("进入" + page_name, true);
进入2
AppLog.WriteInfo( "进入" + ((Button)sender).Text, true);