New ScreenPanel

This commit is contained in:
2018-01-19 10:56:53 +01:00
commit ae4d621609
580 changed files with 46598 additions and 0 deletions

30
script/test18.py Executable file
View 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)