epics/streamdevice/proto_AG53181: AG53181.proto

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