Example #1
0
        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;
        }
Example #2
0
        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>();
        }
Example #3
0
        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();
            }
        }