This commit is contained in:
2018-04-17 12:05:48 +02:00
parent 14edc0e745
commit 58a1260003
428 changed files with 41350 additions and 477 deletions

21
script/tutorial/23_Metadata.js Executable file
View File

@@ -0,0 +1,21 @@
///////////////////////////////////////////////////////////////////////////////////////////////////
// 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().group
set_attribute(path, "AttrString", "Value")
set_attribute(path, "AttrInteger", 1)
set_attribute(path, "AttrDouble", 2.0)
set_attribute(path, "AttrBoolean", true)
//Setting attributes to the scan datasets
set_attribute(path + ao1.name, "AttrInteger", 2)
set_attribute(path + ai1.name, "AttrInteger", 3)
set_attribute(path + ai2.name, "AttrInteger", 4)