This commit is contained in:
boccioli_m
2017-05-16 11:44:07 +02:00
parent e77d7fc626
commit ee7698ccdc
41 changed files with 101 additions and 93 deletions

View File

@@ -14,7 +14,7 @@ def startTest(testName, DEVICE, params):
# by default, assume the test failed
ret = 'Test failed'
status = False
# plot name to be given to the scan. Use: scan.setPlotName(plotName)
# plot name to be given to the scan. Use: scan.setPlotTitle(plotName)
plotName = DEVICE + ' - ' + testName
# put the whole custom code under try/catch
try:
@@ -81,7 +81,7 @@ def startTest(testName, DEVICE, params):
# initialise plot tab with 2 plots
scan = ManualScan(['sample'], ['Motor Status (MSTA)', 'Motor Position (VAL)'])
# set plot name(tab title)
scan.setPlotName(plotName)
scan.setPlotTitle(plotName)
# start plots. See further below how to add points to the plots
scan.start()