New ScreenPanel
This commit is contained in:
30
script/test18.py
Executable file
30
script/test18.py
Executable file
@@ -0,0 +1,30 @@
|
||||
"""
|
||||
Line Scan
|
||||
"""
|
||||
|
||||
attrs_dataset = None
|
||||
attrs_names = ["TESTIOC:TESTCALCOUT:Input",
|
||||
"TESTIOC:TESTCALCOUT:Output",
|
||||
"TESTIOC:TESTSINUS:SinCalc",
|
||||
"TESTIOC:TESTWF2:MyWF"]
|
||||
attrs_types = ["d", "d", "d", "[d"]
|
||||
attrs_lenghts = [0,0,0,10]
|
||||
|
||||
|
||||
def AfterReadout(rec):
|
||||
global attrs_dataset, attrs_names, attrs_type, attrs_lenghts
|
||||
if attrs_dataset is None:
|
||||
attrs_dataset = get_exec_pars().group() + "attributes"
|
||||
create_table(attrs_dataset, attrs_names, attrs_types, attrs_lenghts)
|
||||
record = []
|
||||
for i in range(len(attrs_names)):
|
||||
record.append(caget(attrs_names[i], attrs_types[i]))
|
||||
print record
|
||||
append_table(attrs_dataset, record)
|
||||
|
||||
a = lscan(m1, (ai1, ai2), 0, 0.1, 20, 0.01, after_read=AfterReadout)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user