IOCINFRAApp/Db/devKeithley6487.proto
changeset 1 f6e1a4c75073
parent 0 77d8eafe2a07
equal deleted inserted replaced
0:77d8eafe2a07 1:f6e1a4c75073
     3 # Technology Group, Engineering Division
     3 # Technology Group, Engineering Division
     4 # This code is distributed subject to a Software License Agreement found
     4 # This code is distributed subject to a Software License Agreement found
     5 # in file LICENSE that is included with this distribution.
     5 # in file LICENSE that is included with this distribution.
     6 ##########################################################################
     6 ##########################################################################
     7 
     7 
     8 @writetimeout { disconnect; }
     8 #@writetimeout { disconnect; }
     9 @replytimeout { disconnect; }
     9 #replytimeout { disconnect; }
    10 @readtimeout  { disconnect; }
    10 #readtimeout  { disconnect; }
    11 @mismatch     { disconnect; }
    11 #mismatch     { disconnect; }
    12 
    12 
    13 ReplyTimeout = 1200;
    13 ReplyTimeout = 600;
       
    14 ReadTimeout = 100;
    14 InTerminator = "\n";
    15 InTerminator = "\n";
    15 OutTerminator = "\n";
    16 OutTerminator = "\n";
    16 
    17 
    17 getIDN {
    18 getIDN {
    18     out "*IDN?";
    19     out "*IDN?";
    21 }
    22 }
    22 cmd {
    23 cmd {
    23     out "\$1";
    24     out "\$1";
    24 }
    25 }
    25 
    26 
       
    27 setArmCount {
       
    28     out "\$1 %d";
       
    29 #    @init { out "\$1?"; in "%d"; }
       
    30 }
       
    31 
       
    32 getArmCount {
       
    33     out "\$1?";
       
    34     in "%d";
       
    35     ExtraInput = Ignore;
       
    36 }
       
    37 
    26 setD {
    38 setD {
    27     out "\$1 %d";
    39     out "\$1 %d";
    28     @init { out "\$1?"; in "%d"; }
    40     @init { out "\$1?"; in "%d"; }
    29 }
    41 }
       
    42 
    30 getD {
    43 getD {
    31     out "\$1?";
    44     out "\$1?";
    32     in "%d";
    45     in "%d";
    33     ExtraInput = Ignore;
    46     ExtraInput = Ignore;
    34 }
    47 }
    79 
    92 
    80 #
    93 #
    81 # Measure current
    94 # Measure current
    82 #
    95 #
    83 measureCurrent {
    96 measureCurrent {
    84     ReplyTimeout = 5000;
    97     ReplyTimeout = 800;
    85     out "READ?";
    98     out "READ?";
    86     in "%f";
    99     in "%f";
    87     ExtraInput = Ignore;
   100     ExtraInput = Ignore;
    88     @init { out "FORM:ELEM READ;CONF:CURR:DC"; }
   101     @init { out "FORM:ELEM READ;CONF:CURR:DC"; }
    89 }
   102 }
    96 }
   109 }
    97 
   110 
    98 #
   111 #
    99 # Source
   112 # Source
   100 #
   113 #
   101 setIlimit {
   114 #not on 6485
   102     out "SOUR:VOLT:ILIM 2.5E-%d";
   115 #setIlimit {
   103     @init { out "SOUR:VOLT:ILIM?"; in "2.5%*[^E]E-%d"; }
   116 #    out "SOUR:VOLT:ILIM 2.5E-%d";
   104 }
   117 #    @init { out "SOUR:VOLT:ILIM?"; in "2.5%*[^E]E-%d"; }
   105 getIlimit {
   118 #}
   106     out "SOUR:VOLT:ILIM?";
   119 #getIlimit {
   107     in "2.5%*[^E]E-%d";
   120 #    out "SOUR:VOLT:ILIM?";
   108     ExtraInput = Ignore;
   121 #    in "2.5%*[^E]E-%d";
   109 }
   122 #    ExtraInput = Ignore;
   110 setSourceRange {
   123 #}
   111     out "SOUR:VOLT:RANGE %d";
   124 #setSourceRange {
   112     @init { out "SOUR:VOLT:RANGE?"; in "%{1.000000E+01|5.000000E+01|5.000000E+02}"; }
   125 #    out "SOUR:VOLT:RANGE %d";
   113 }
   126 #    @init { out "SOUR:VOLT:RANGE?"; in "%{1.000000E+01|5.000000E+01|5.000000E+02}"; }
   114 getSourceRange {
   127 #}
   115     out "SOUR:VOLT:RANGE?";
   128 #getSourceRange {
   116     in "%{1.000000E+01|5.000000E+01|5.000000E+02}";
   129 #    out "SOUR:VOLT:RANGE?";
   117     ExtraInput = Ignore;
   130 #    in "%{1.000000E+01|5.000000E+01|5.000000E+02}";
   118 }
   131 #    ExtraInput = Ignore;
       
   132 #}
   119 
   133