Skip to content

Commit bca0ef0

Browse files
committed
Bugfixes: Setpoints and model-specific channels
This bugfix corrects two problems: - Wrong values for setpoints as the device cannot cope with the excessive default precision for float values in Labber - Channels that should show for specific devices did not show up at all
1 parent cb85f43 commit bca0ef0

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

Lakeshore 33x/Lakeshore 33x.ini

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ version: 1.0
1010

1111
# Name of folder containing the code defining a custom driver. Do not define this item
1212
# or leave it blank for any standard driver based on the built-in VISA interface.
13-
driver_path:
13+
driver_path: Lakeshore 33x
1414

1515

1616

@@ -112,14 +112,14 @@ datatype: DOUBLE
112112
permission: READ
113113
get_cmd: KRDG? C
114114
unit: K
115-
model_value_1: MODEL336
115+
model_value_1: Lakeshore 336
116116

117117
[Temperature D]
118118
datatype: DOUBLE
119119
permission: READ
120120
get_cmd: KRDG? D
121121
unit: K
122-
model_value_1: MODEL336
122+
model_value_1: Lakeshore 336
123123

124124
[Raw A]
125125
datatype: DOUBLE
@@ -138,35 +138,35 @@ datatype: DOUBLE
138138
permission: READ
139139
get_cmd: SRDG? C
140140
unit: Ohm
141-
model_value_1: MODEL336
141+
model_value_1: Lakeshore 336
142142

143143
[Raw D]
144144
datatype: DOUBLE
145145
permission: READ
146146
get_cmd: SRDG? D
147147
unit: Ohm
148-
model_value_1: MODEL336
148+
model_value_1: Lakeshore 336
149149

150150
[Heater]
151151
datatype: DOUBLE
152152
permission: READ
153153
get_cmd: HTR?
154154
unit: %
155-
model_value_1: MODEL332
155+
model_value_1: Lakeshore 332
156156

157157
[Heater 1]
158158
datatype: DOUBLE
159159
permission: READ
160160
get_cmd: HTR? 1
161161
unit: %
162-
model_value_1: MODEL336
162+
model_value_1: Lakeshore 336
163163

164164
[Heater 2]
165165
datatype: DOUBLE
166166
permission: READ
167167
get_cmd: HTR? 2
168168
unit: %
169-
model_value_1: MODEL336
169+
model_value_1: Lakeshore 336
170170

171171
[Setpoint 1]
172172
datatype: DOUBLE
@@ -185,11 +185,11 @@ datatype: DOUBLE
185185
get_cmd: SETP? 3
186186
set_cmd: SETP: 3,
187187
unit: K
188-
model_value_1: MODEL336
188+
model_value_1: Lakeshore 336
189189

190190
[Setpoint 4]
191191
datatype: DOUBLE
192192
get_cmd: SETP? 4
193193
set_cmd: SETP: 4,
194194
unit: K
195-
model_value_1: MODEL336
195+
model_value_1: Lakeshore 336

Lakeshore 33x/Lakeshore 33x.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env python
2+
3+
from VISA_Driver import VISA_Driver
4+
5+
__version__ = "0.0.1"
6+
7+
class Error(Exception):
8+
pass
9+
10+
class Driver(VISA_Driver):
11+
""" This class implements the Lakeshore 33x driver"""
12+
13+
def performSetValue(self, quant, value, sweepRate=0.0, options={}):
14+
"""Perform the set value operation"""
15+
# The default precision of labber is too high...
16+
self.writeAndLog(quant.set_cmd + str(value))
17+
return value
18+
19+
if __name__ == '__main__':
20+
pass

0 commit comments

Comments
 (0)