Update
This commit is contained in:
23
script/testpars.py
Normal file
23
script/testpars.py
Normal file
@@ -0,0 +1,23 @@
|
||||
###################################################################################################
|
||||
# Setting script parameters and return value
|
||||
###################################################################################################
|
||||
|
||||
|
||||
#Providing a map of global variables
|
||||
#run ("52_ParametersAndReturn", {"start":10.0, "end":50.0, "step":40})
|
||||
|
||||
#Providing the locals dictionary
|
||||
# The parameters are not set as globals, and nor script definitions
|
||||
#run ("52_ParametersAndReturn", locals={"start":10.0, "end":50.0, "step":40})
|
||||
|
||||
#Setting sys.argv:
|
||||
#run ("52_ParametersAndReturn", [10.0, 50.0, 40])
|
||||
|
||||
#In this case the parameters would be parsed as:
|
||||
#start = sys.argv[0]
|
||||
#end = sys.argv[1]
|
||||
#step = sys.argv[2]
|
||||
|
||||
|
||||
ret = lscan(ao1, ai1, start, end, step, 0.1)
|
||||
set_return(ret[ai1])
|
||||
Reference in New Issue
Block a user