| 1 |
|
|---|
| 2 | ##Terminator = CR LF; ##LF<0a> wo ireteokuto error ga deru:1 byte surplus input "<0a>"
|
|---|
| 3 | Terminator = LF;
|
|---|
| 4 |
|
|---|
| 5 | #LockTimeout = 10000;
|
|---|
| 6 | #WriteTimeout = 10000;
|
|---|
| 7 | ReplyTimeout = 10000; ## 10000ms
|
|---|
| 8 | #ReadTimeout = 10000;
|
|---|
| 9 |
|
|---|
| 10 | #
|
|---|
| 11 | ############### *IDN? ###############
|
|---|
| 12 | getIDN {
|
|---|
| 13 | out "*IDN?"; in "%39c";
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | ############## *RST ###############
|
|---|
| 17 | setRST {
|
|---|
| 18 | out "*RST";
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | ############## *CLS ###############
|
|---|
| 22 | setCLS {
|
|---|
| 23 | out "*CLS";
|
|---|
| 24 | }
|
|---|
| 25 |
|
|---|
| 26 | ############## *SRE0 ###############
|
|---|
| 27 | setSRE0 {
|
|---|
| 28 | out "*SRE 0";
|
|---|
| 29 | }
|
|---|
| 30 |
|
|---|
| 31 | ############## *ESE0 ###############
|
|---|
| 32 | setESE0 {
|
|---|
| 33 | out "*ESE 0";
|
|---|
| 34 | }
|
|---|
| 35 |
|
|---|
| 36 | ############## STATUS PRESET ###############
|
|---|
| 37 | setSTPR {
|
|---|
| 38 | out ":STAT:PRES";
|
|---|
| 39 | }
|
|---|
| 40 |
|
|---|
| 41 | ############## FILTER OFForON ###############
|
|---|
| 42 | getFILT {
|
|---|
| 43 | out ":INPUT1:FILTER?"; in "%{0|1}";
|
|---|
| 44 | }
|
|---|
| 45 |
|
|---|
| 46 | setFILT {
|
|---|
| 47 | out ":INPUT1:FILTER %{OFF|ON}";
|
|---|
| 48 | @init { getFILT; }
|
|---|
| 49 | }
|
|---|
| 50 |
|
|---|
| 51 | ############## TRIGGER LEVEL AUTO ###############
|
|---|
| 52 | getLEVAU {
|
|---|
| 53 | out ":EVENT1:LEVEL:AUTO?"; in "%{0|1}";
|
|---|
| 54 | }
|
|---|
| 55 |
|
|---|
| 56 | setLEVAU {
|
|---|
| 57 | out ":EVENT1:LEVEL:AUTO %{OFF|ON}";
|
|---|
| 58 | @init { getLEVAU; }
|
|---|
| 59 | }
|
|---|
| 60 |
|
|---|
| 61 | ############### TRIGGER LEVEL ###############
|
|---|
| 62 | getLEV {
|
|---|
| 63 | out ":EVENT1:LEVEL?"; in "%f";
|
|---|
| 64 | }
|
|---|
| 65 |
|
|---|
| 66 | setLEV {
|
|---|
| 67 | out ":EVENT1:LEVEL %f";
|
|---|
| 68 | @init { getLEV; }
|
|---|
| 69 | }
|
|---|
| 70 |
|
|---|
| 71 | ############## COUPLING ###############
|
|---|
| 72 | getCOUP {
|
|---|
| 73 | out ":INPUT1:COUP?"; in "%{AC|DC}";
|
|---|
| 74 | }
|
|---|
| 75 |
|
|---|
| 76 | setCOUP {
|
|---|
| 77 | out ":INPUT1:COUP %{AC|DC}";
|
|---|
| 78 | @init { getCOUP; }
|
|---|
| 79 | }
|
|---|
| 80 |
|
|---|
| 81 | ############### IMPEDANCE ###############
|
|---|
| 82 | getIMP {
|
|---|
| 83 | out ":INPUT1:IMP?"; in "%f";
|
|---|
| 84 | }
|
|---|
| 85 |
|
|---|
| 86 | setIMP {
|
|---|
| 87 | out ":INPUT1:IMP %f";
|
|---|
| 88 | @init { getIMP; }
|
|---|
| 89 | }
|
|---|
| 90 |
|
|---|
| 91 | ############## TRIGGER SLOPE ###############
|
|---|
| 92 | getSLOP {
|
|---|
| 93 | out ":EVENT1:SLOPE?"; in "%{POS|NEG}";
|
|---|
| 94 | }
|
|---|
| 95 |
|
|---|
| 96 | setSLOP {
|
|---|
| 97 | out ":EVENT1:SLOPE %{POS|NEG}";
|
|---|
| 98 | @init { getSLOP; }
|
|---|
| 99 | }
|
|---|
| 100 |
|
|---|
| 101 | ############### CHANNEL SELECT ###############
|
|---|
| 102 | getSENS {
|
|---|
| 103 | out ":FUNC?"; in "%39c";
|
|---|
| 104 | # out ":FUNC?"; in "%{""FREQ""|""FREQ 2""}"; ##umaku ikazu...
|
|---|
| 105 | }
|
|---|
| 106 |
|
|---|
| 107 | setSENS {
|
|---|
| 108 | out ":FUNC 'FREQ %{1|2}'";
|
|---|
| 109 | # @init { getSENS; }
|
|---|
| 110 | }
|
|---|
| 111 |
|
|---|
| 112 | ############## GATE MODE ###############
|
|---|
| 113 | getGAMO {
|
|---|
| 114 | out ":FREQ:ARM:STOP:SOUR?"; in "%{IMM|EXT|TIM|DIG}";
|
|---|
| 115 | }
|
|---|
| 116 |
|
|---|
| 117 | setGAMO {
|
|---|
| 118 | out ":FREQ:ARM:STOP:SOUR %{IMM|EXT|TIM|DIG}";
|
|---|
| 119 | @init { getGAMO; }
|
|---|
| 120 | }
|
|---|
| 121 |
|
|---|
| 122 | ############### GATE TIMER ###############
|
|---|
| 123 | getGATI {
|
|---|
| 124 | out ":FREQ:ARM:STOP:TIM?"; in "%f";
|
|---|
| 125 | }
|
|---|
| 126 |
|
|---|
| 127 | setGATI {
|
|---|
| 128 | out ":FREQ:ARM:STOP:TIM %f";
|
|---|
| 129 | @init { getGATI; }
|
|---|
| 130 | }
|
|---|
| 131 |
|
|---|
| 132 | ############### FREQUENCY? ###############
|
|---|
| 133 | getFREQ {
|
|---|
| 134 | out ":READ:FREQ?"; in "%f";
|
|---|
| 135 | # wait 10000;
|
|---|
| 136 | # event 10000;
|
|---|
| 137 | # connect 10000;
|
|---|
| 138 |
|
|---|
| 139 | }
|
|---|
| 140 |
|
|---|
| 141 | ############### DATA? ###############
|
|---|
| 142 | getDATA {
|
|---|
| 143 | out ":DATA?"; in "%f";
|
|---|
| 144 | }
|
|---|
| 145 |
|
|---|
| 146 |
|
|---|
| 147 |
|
|---|
| 148 | ############### RUN MODE ###############
|
|---|
| 149 | #setRUN {
|
|---|
| 150 | # out ":INIT:CONT ON";
|
|---|
| 151 | #}
|
|---|
| 152 |
|
|---|
| 153 | getRUN {
|
|---|
| 154 | out ":INIT:CONT?"; in "%{0|1}";
|
|---|
| 155 | }
|
|---|
| 156 |
|
|---|
| 157 | setRUN {
|
|---|
| 158 | out ":INIT:CONT %{OFF|ON}";
|
|---|
| 159 | @init { getRUN; }
|
|---|
| 160 | }
|
|---|
| 161 |
|
|---|
| 162 |
|
|---|
| 163 |
|
|---|