修改LOG快捷复制

该代码段记录了关于视觉系统应用的各种操作,包括页面的保存关闭、ROI检测框的移动、尺寸变化、旋转、定位分数的修改、极性的选择、模板训练以及存图设置的状态改变等。此外,还有登录、使用配方和进入特定页面的事件。
摘要由CSDN通过智能技术生成

获取基准位置

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);

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值