Startup
This commit is contained in:
@@ -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
15
script/test/test_pvs.py
Normal 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")
|
||||
Reference in New Issue
Block a user