Skip to content
Snippets Groups Projects
Commit 80413137 authored by Daniele Nicolodi's avatar Daniele Nicolodi
Browse files

cryo124k: Remove acquisition of cryostat heat exchanger temperature

The functionality has been moved to the Agilent 34972A datalogger.
parent 717882ff
No related branches found
No related tags found
No related merge requests found
......@@ -41,13 +41,6 @@ class TransMIT124K:
# Wait for operation to complete.
instr.query(b'*OPC?')
# Setup 4-wire Pt100 temperature measuremet for channel 101:
# measurement units K, 20 power line cycles integration time.
instr.send(b'CONF:TEMP FRTD,85,1,1E-6,(@101)')
instr.send(b'UNIT:TEMP K,(@101)')
instr.send(b'SENS:TEMP:NPLC 20,(@101)')
instr.query(b'*OPC')
# Setup voltage measurement for channel 104: 10 V range, longest
# integration time to keep scanning rate to 1 Hz is 2 PLCs.
instr.send(b'CONF:VOLT:DC 10,(@104)')
......@@ -55,7 +48,7 @@ class TransMIT124K:
instr.query(b'*OPC')
# Configure scan list.
instr.send(b'ROUTE:SCAN (@101,104)')
instr.send(b'ROUTE:SCAN (@104)')
# Set scan interval to 1 second.
instr.send(b'TRIG:SOURCE TIMER')
......@@ -108,10 +101,15 @@ class TransMIT124K:
async def acquire(instr, data):
async for timestamp, temp, v in instr.scan():
async for timestamp, v in instr.scan():
t = datetime.datetime.fromtimestamp(timestamp).isoformat(' ', 'milliseconds')
print(f'{timestamp:.3f} {t} {temp:.4f} K {v:+.3f} V {instr.output:+.3f} V', end='\033[0K\r')
data.write(timestamp, temp, v, instr.output)
print(f'{timestamp:.3f} {t} {v:+.3f} V {instr.output:+.3f} V', end='\033[0K\r')
# The Agilent 34970A was used to also acquire temperature of
# the cryostat heat exchanger. Now this functionality is
# delegated to another instrument. Keep the data column to
# maintain datafile format compatibility.
data.write(timestamp, float('nan'), v, instr.output)
@click.command()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment