New ScreenPanel

This commit is contained in:
2018-01-19 10:56:53 +01:00
commit ae4d621609
580 changed files with 46598 additions and 0 deletions

14
script/test35.py Executable file
View File

@@ -0,0 +1,14 @@
tutorial_path = "src/main/assembly/help/Tutorial/"
run(tutorial_path+"00_devices")
class FitnessFunction(ReadonlyRegisterBase):
def doRead(self):
return 1000.0 - (math.pow(ao1.take()-18, 2) + math.pow(ao2.take()-6, 2))
add_device(FitnessFunction("fitness"), True)
#a= lscan(ao1, (wf1), 5, 0, 0.1)
#a= lscan(ao1, (wf1), 0, 5, 0.1)
r = ascan([ao1, ao2], fitness, [0.0,0.0], [21.0,21.0], [1.1, 1.1], title = "Fitness")
s= 1.1
r = ascan([ao1, ao2], fitness, [0.0,0.0], [4.0,4.0], [s, s], title = "Fitness")