New ScreenPanel
This commit is contained in:
15
script/Metadata.py
Executable file
15
script/Metadata.py
Executable file
@@ -0,0 +1,15 @@
|
||||
###################################################################################################
|
||||
# Demonstrate adding attributs to scan groups and datasets.
|
||||
###################################################################################################
|
||||
|
||||
|
||||
#Execute the scan: 200 steps, a1 from 0 to 40
|
||||
a= lscan(ao1, (ai1,ai2), 0, 40, 10, 0.01)
|
||||
|
||||
|
||||
#Setting attributes to the scan group
|
||||
path = get_exec_pars().scanPath
|
||||
set_attribute(path, "User", "Mr. Black")
|
||||
set_attribute(path, "Temperature", 38.0)
|
||||
set_attribute(path, "Test Mode", True)
|
||||
|
||||
Reference in New Issue
Block a user