This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#Fri Jan 19 10:56:01 CET 2018
|
||||
#Wed Jan 24 12:02:38 CET 2018
|
||||
autoSaveScanData=true
|
||||
createSessionFiles=false
|
||||
dataLayout=default
|
||||
dataLayout=table
|
||||
dataPath={data}/{year}_{month}/{date}/{date}_{time}_{name}
|
||||
dataProvider=h5
|
||||
dataProvider=txt
|
||||
dataScanFlushRecords=false
|
||||
dataScanPreserveTypes=false
|
||||
dataScanReleaseRecords=false
|
||||
|
||||
Binary file not shown.
21
script/test/TestNested.py
Normal file
21
script/test/TestNested.py
Normal file
@@ -0,0 +1,21 @@
|
||||
index=0
|
||||
def calc():
|
||||
global index
|
||||
index += 1
|
||||
ret= tscan(sin, 10, 0.1, tag="scan " + str(index))
|
||||
#ret= tscan(sin, 10, 0.1)
|
||||
v = max(ret.getReadable(0))
|
||||
return float(v)
|
||||
|
||||
|
||||
class PseudoDev(Readable):
|
||||
def read(self):
|
||||
return calc()
|
||||
|
||||
d= PseudoDev()
|
||||
|
||||
|
||||
ret= lscan(inp, (d), 0, 40, 5, 0.2, tag="output")
|
||||
#ret= lscan(inp, (d), 0, 40, 5, 0.2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user