16 lines
527 B
Python
16 lines
527 B
Python
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")
|