| | |
| | | public frmMain() |
| | | { |
| | | InitializeComponent(); |
| | | |
| | | //this.Load += frmMain_Load; |
| | | } |
| | | |
| | | private void frmMain_Load(object sender, EventArgs e) |
| | |
| | | config.opcConfig.groupProperty.updateRate = 300; |
| | | config.title = "LLMF V1.1"; |
| | | config.cams = new CamerasConfig(); |
| | | config.cams.SerialNumber = new uint[1]; |
| | | config.cams.SerialNumber[0] = 11111111; |
| | | config.cams.SerialNumber = new string[1]; |
| | | config.cams.SerialNumber[0] = "192.168.0.10"; |
| | | config.password = "1"; |
| | | config.minAngle = 119; |
| | | config.maxAngle = 121; |
| | |
| | | Log.WriteLog("initCam_Left Enter"); |
| | | |
| | | cam_left = new PointGreyAndHalcon.PointGreyAndHalcon(); |
| | | isLeftCameraOpen = cam_left.OpenCamera(config.cams.SerialNumber[0]); |
| | | string ipAddress = config?.cams.SerialNumber[0] ?? ""; |
| | | isLeftCameraOpen = cam_left.OpenCamera(ipAddress); |
| | | cam_left.GrabImageDone += new GrabImageDoneDelegate(cam_left_GrabImageDone); |
| | | |
| | | Log.WriteLog("initCam_Left Leave"); |