public CalibForm() { InitializeComponent(); currentForm = this; //// plc protocol init //PLCinfo = new DeltaIncomingInformation(); //ClassDeltaProtocol = new classDeltaProtocol(Properties.Settings.Default.plcComPort, 9600, PLCinfo); // multplexing protocol init MultiplexingInfo = new MultiplexingIncomingInformation(); classMultiplexing = new classMultiplexing(Properties.Settings.Default.multiplexingComPort, 115200, MultiplexingInfo); // DP protocol init DPinfo = new DpIncomingInformation(); classDpCommunication = new ClassDpCommunication(Properties.Settings.Default.dpComPort, 115200, DPinfo); //// Temp controller protocol init //tempControllerInstanse = new TempControllerProtocol(Properties.Settings.Default.TempControllerComPort, 9600); // Calibration class init classCalibrationInfo = new ClassCalibrationInfo(tempControllerInstanse, classDpCommunication, classMultiplexing, ClassDeltaProtocol); UpdateTempTime = DateTime.Now; }
public ConfigForm(ClassDpCommunication dpProtocolInstanse, CalibForm calibFormcaller, string ver) { calibForm = calibFormcaller; InitializeComponent(); DpProtocolInstanse = dpProtocolInstanse; Text += " Ver " + ver; tb_batch.Text = Properties.Settings.Default.Batch; tb_fwVersion.Text = Properties.Settings.Default.FwVersion; tb_stationId.Text = Properties.Settings.Default.StationId.ToString(); tb_userName.Text = Properties.Settings.Default.UserId; }
public ConfigForm(ClassDpCommunication dpProtocolInstanse, CalibForm calibFormcaller) { calibForm = calibFormcaller; InitializeComponent(); DpProtocolInstanse = dpProtocolInstanse; }
public CalibForm() { InitializeComponent(); currentForm = this; // check the names of the comports... /* * classSerialQueryDriver.GetComPortName( * ref MutiplexingComPortName, * Properties.Settings.Default.MultiplexerComPortID, * ref PlcComPortName, * Properties.Settings.Default.PlcComPortID, * ref DpComPortName, * Properties.Settings.Default.DpComPortID, * ref TempControllerComPortName, * Properties.Settings.Default.TempControllerComPortID); */ // plc protocol init PlcComPortName = Properties.Settings.Default.plcComPort; PLCinfo = new DeltaIncomingInformation(); ClassDeltaProtocol = new classDeltaProtocol(PlcComPortName, 9600, PLCinfo, this); // multplexing protocol init MutiplexingComPortName = Properties.Settings.Default.multiplexingComPort; MultiplexingInfo = new MultiplexingIncomingInformation(); classMultiplexing = new classMultiplexing(MutiplexingComPortName, 115200, MultiplexingInfo); // DP protocol init DpComPortName = Properties.Settings.Default.dpComPort; DPinfo = new DpIncomingInformation(); classDpCommunication = new ClassDpCommunication(DpComPortName, 115200, DPinfo, this); // Temp controller protocol init TempControllerComPortName = Properties.Settings.Default.TempControllerComPort; tempControllerInstanse = new TempControllerProtocol(TempControllerComPortName, 9600, true); //tempControllerInstanse = new TempControllerProtocol("COM16", 9600); //update versions swVersions = new SwVersion("1.0.0", "", Application.ProductVersion); // Calibration class init classCalibrationInfo = new ClassCalibrationInfo(tempControllerInstanse, classDpCommunication, classMultiplexing, ClassDeltaProtocol, swVersions, this); bt_startCalibration.Enabled = false; bt_stopCalibration.Enabled = false; bt_pauseStartCalib.Enabled = false; ScanButton.Enabled = false; UpdateTempTime = DateTime.Now; foreach (Device dev in classSerialQueryDriver.devices) { rtb_info.AppendText(dev.ToString()); Console.WriteLine(dev.ToString()); } rtb_info.ScrollToCaret(); update_thread = new Thread(timer_update_thread); update_thread.Start(); }