Script execution

This commit is contained in:
boccioli_m
2017-05-15 18:19:44 +02:00
parent d70e35a384
commit f4e8d23c8b

View File

@@ -2,10 +2,13 @@
#test that does not use any connection to IOC. It is useful to test pure pshell graphical features.
# testing environment setup (if script is launched directly without Testinglist)
is_panel = get_exec_pars().source != CommandSource.ui
if not is_panel:
# set up params for testing
testName = "dry test"
DEVICE = "no-device"
params = "{'howManySamples': {'description': 'How many samples are plotted', 'value': '50'}, 'delayBetweenSampleS': {'description': 'delay [s] between two samples', 'value': '0.05'}, 'repeatTimes': {'description': 'how many times the test is repeated', 'value': '3'}}"
pass
###### Init - DO NOT MODIFY THE CODE BELOW ######
@@ -22,7 +25,7 @@ def startTest(testName, DEVICE, params):
testPath = inspect.getfile(inspect.currentframe())
#init the testing tool class. It can be sued in the following ways:
test = TestingTool(testName, testPath, DEVICE, params)
#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 = test.getPlotName()
######### WRITE YOUR CODE HERE BELOW #############