private void Form1_Load(object sender, EventArgs e) { USBInterface = new LIBADX.LIBADX(); lblMinimum.Text = trbPWM.Minimum.ToString(); lblMaximum.Text = trbPWM.Maximum.ToString(); lblValue.Text = trbPWM.Value.ToString(); trbPWM.Enabled = false; }
private void frmVisualisation_Load(object sender, EventArgs e) { if (bWithHardware) { USBInterface = new LIBADX.LIBADX(); } else // No hardware -> simulation { RandomVoltage = new Random(); } MVList = new List <double>(); MVList2 = new List <double>(); }
private void frmUSBInterface_Load(object sender, EventArgs e) { MVList = new List <double>(); MVListDiff = new List <double>(); if (bWithHardware) { USBInterface = new LIBADX.LIBADX(); } else // without hardware { RandomVoltage = new Random(); } }