public double GetCurrent()
        {
            double retVal = 0;

            vxi11Device.write(":SOUR:CURR?");
            retVal = Convert.ToDouble(vxi11Device.read());
            return(retVal);
        }
Пример #2
0
 public String getTrace()
 {
     try
     {
         //vxi11Device.write("from ascii"); // Line gives undefined header error
         vxi11Device.write("trac? tra");
         String response = vxi11Device.read();
         int    count    = 0;
         bool   flag     = response.Contains("\n");
         // Count how many lines in response
         while (!flag)
         {
             String temp = vxi11Device.read();
             response = response + temp;
             flag     = temp.Contains("\n");
             count++;
         }
         return(response);
     }
     catch (System.Exception)
     {
         throw new System.Exception("Agilent 86142 get trace failed");
     }
 }