This commit is contained in:
gac-x11ma
2025-11-05 15:20:33 +01:00
parent 6447c123ee
commit 103abb1277
2 changed files with 16 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
#Wed Nov 05 12:21:52 CET 2025
#Wed Nov 05 15:20:32 CET 2025
ALPHA_ID_2=0.0
AUTO_SWITCH_BEAMLINE=false
AUTO_SWITCH_SHUTTER=true

15
script/test/test_pvs.py Normal file
View File

@@ -0,0 +1,15 @@
waveform = PV.waveform("TEST:WAVEFORM", PV.Type.DOUBLE, 2)
scalar = PV.scalar("TEST:SCALAR", PV.Type.INT)
#PVs are updated writing to the registers
def after_read(record, scan):
waveform.write([record[keithley_1a],record[keithley_2a]])
scalar.write(record.index)
r= tscan((keithley_1a, keithley_2a), 5, 0.3, after_read=after_read, save=False)
print r[keithley_1a],r[keithley_2a]
waveform.write([r[keithley_1a][-1],r[keithley_2a][-1]])
scalar.write(len(r))
print caget("TEST:WAVEFORM")
print caget("TEST:SCALAR")