private void button1_Click(object sender, EventArgs e)
        {
            string s;

            Agilent.Open();                      //Opens the socket
            //Agilent.WriteLine("SYST:REM");
            //System.Threading.Thread.Sleep(2000);
            Agilent.WriteLine("*IDN?");          //Write the command *IDN? to the device.
            System.Threading.Thread.Sleep(1000); //Sleep to help have command reach the device
            s = Agilent.ReadLine();              //Stores data found as a response
            System.Threading.Thread.Sleep(4000); //Sleep to help have command reach the device
            response.Text = s;                   //Sets the label to the return value from the socket
            Agilent.Close();                     //Closes the socket
        }