22 lines
490 B
Python
Executable File
22 lines
490 B
Python
Executable File
"""
|
|
Processing and plotting scan data
|
|
"""
|
|
|
|
inp.write(0.0)
|
|
scan1= lscan(inp, (sin,out,arr), 0, 40, 20, 0.1, False, title="Scan 1")
|
|
time.sleep(3.0)
|
|
scan2= lscan(inp, (sin,out,arr), 0, 40, 20, 0.1, False, title="Scan 2")
|
|
|
|
from operator import add
|
|
result = map(add, scan1.getReadable(0), scan2.getReadable(0))
|
|
|
|
#Alternative:
|
|
#result=[]
|
|
#for i in range(len(scan1.records)):
|
|
# result.append(scan1.records[i].values[0]+scan2.records[i].values[0])
|
|
|
|
|
|
plot(result)
|
|
print result
|
|
|