commit f9e8cf2a3047d482ce350987dd30c9cf9ee6962e Author: gac-x01dc Date: Wed Mar 28 13:15:55 2018 +0200 Creation diff --git a/config/config.properties b/config/config.properties new file mode 100644 index 0000000..a332ca0 --- /dev/null +++ b/config/config.properties @@ -0,0 +1,30 @@ +#Wed Mar 28 13:15:38 CEST 2018 +autoSaveScanData=true +createSessionFiles=false +dataLayout=default +dataPath={data}/{year}_{month}/{date}/{date}_{time}_{name} +dataProvider=h5 +dataScanFlushRecords=false +dataScanPreserveTypes=false +dataScanReleaseRecords=false +dataServerPort=-1 +depthDimension=0 +hostName=null +instanceName=X01DC +logDaysToLive=30 +logLevel=Info +logLevelConsole=Off +logPath={logs}/{date}_{time} +notificationLevel=Off +scanStreamerPort=-1 +serverEnabled=false +serverPort=8080 +simulation=false +terminalEnabled=false +terminalPort=3579 +userAuthenticator= +userManagement=false +versionTrackingEnabled=true +versionTrackingLogin={context}/svcusr-hlapp_robot +versionTrackingManual=false +versionTrackingRemote=git@git.psi.ch\:pshell_config/x01dc.git diff --git a/config/devices.properties b/config/devices.properties new file mode 100644 index 0000000..5de5d02 --- /dev/null +++ b/config/devices.properties @@ -0,0 +1,2 @@ +dks=ch.psi.pshell.epics.Motor|X01DC-MPI-DKS2:MOT|||true +sensor=ch.psi.pshell.epics.ChannelDouble|X01DC-MPI-DKS2:MOT.RBV 1|Read||true diff --git a/config/mail.properties b/config/mail.properties new file mode 100644 index 0000000..dda0c19 --- /dev/null +++ b/config/mail.properties @@ -0,0 +1,9 @@ +#Wed Mar 28 09:04:10 CEST 2018 +auth=None +from= +host= +port=0 +pwd= +smsSuffix=@sms.switch.ch +to= +usr= diff --git a/config/setup.properties b/config/setup.properties new file mode 100644 index 0000000..75c2d2e --- /dev/null +++ b/config/setup.properties @@ -0,0 +1,18 @@ +#Wed Mar 28 09:04:08 CEST 2018 +configFile={config}/config.properties +configFileDevices={config}/devices.properties +configFilePlugins={config}/plugins.properties +configFileTasks={config}/tasks.properties +configPath={home}/config +contextPath={outp}/context +dataPath={outp}/data +devicesPath={home}/devices +extensionsPath={home}/extensions +imagesPath={outp}/images +libraryPath={script}; {script}/Lib +logPath={outp}/log +pluginsPath={home}/plugins +scriptPath={home}/script +scriptType=py +sessionsPath={outp}/sessions +wwwPath={home}/www diff --git a/devices/Time.properties b/devices/Time.properties new file mode 100644 index 0000000..7fabb7c --- /dev/null +++ b/devices/Time.properties @@ -0,0 +1,9 @@ +#Wed Mar 28 10:35:08 CEST 2018 +maxValue=NaN +minValue=NaN +offset=0.0 +precision=-1 +resolution=NaN +rotation=false +scale=1.0 +unit=null diff --git a/devices/dks.properties b/devices/dks.properties new file mode 100644 index 0000000..03d8091 --- /dev/null +++ b/devices/dks.properties @@ -0,0 +1,16 @@ +#Wed Mar 28 10:15:41 CEST 2018 +defaultSpeed=5.0 +estbilizationDelay=0 +hasEnable=false +homingType=None +maxSpeed=10.0 +maxValue=60.1 +minSpeed=0.1 +minValue=-0.1 +offset=0.0 +precision=5 +resolution=0.0025 +rotation=false +scale=1.0 +startRetries=1 +unit=mm diff --git a/devices/dp1.properties b/devices/dp1.properties new file mode 100644 index 0000000..4df0033 --- /dev/null +++ b/devices/dp1.properties @@ -0,0 +1,11 @@ +#Wed Mar 28 09:14:04 CEST 2018 +motor1=0.0|4.0|8.0|0.0 +motor2=0.0|5.0|3.0|NaN +motor3=null +motor4=null +motor5=null +motor6=null +motor7=null +motor8=null +positions=Park|Ready|Out|Clear +precision=-1 diff --git a/devices/m1.properties b/devices/m1.properties new file mode 100644 index 0000000..e84a878 --- /dev/null +++ b/devices/m1.properties @@ -0,0 +1,14 @@ +#Wed Mar 28 09:14:04 CEST 2018 +defaultSpeed=1.0 +estbilizationDelay=0 +maxSpeed=10.0 +maxValue=10.0 +minSpeed=0.1 +minValue=-10.0 +offset=0.0 +precision=2 +resolution=NaN +rotation=false +scale=1.0 +startRetries=1 +unit=mm diff --git a/devices/m2.properties b/devices/m2.properties new file mode 100644 index 0000000..e84a878 --- /dev/null +++ b/devices/m2.properties @@ -0,0 +1,14 @@ +#Wed Mar 28 09:14:04 CEST 2018 +defaultSpeed=1.0 +estbilizationDelay=0 +maxSpeed=10.0 +maxValue=10.0 +minSpeed=0.1 +minValue=-10.0 +offset=0.0 +precision=2 +resolution=NaN +rotation=false +scale=1.0 +startRetries=1 +unit=mm diff --git a/devices/p1.properties b/devices/p1.properties new file mode 100644 index 0000000..b06f37c --- /dev/null +++ b/devices/p1.properties @@ -0,0 +1,9 @@ +#Wed Mar 28 09:14:04 CEST 2018 +maxValue=1000.0 +minValue=0.0 +offset=0.0 +precision=-1 +resolution=NaN +rotation=false +scale=1.0 +unit=mm diff --git a/devices/src1.properties b/devices/src1.properties new file mode 100644 index 0000000..de2aace --- /dev/null +++ b/devices/src1.properties @@ -0,0 +1,24 @@ +#Wed Mar 28 09:28:43 CEST 2018 +colormap=Temperature +colormapAutomatic=true +colormapMax=NaN +colormapMin=NaN +flipHorizontally=false +flipVertically=false +grayscale=false +invert=false +rescaleFactor=1.0 +rescaleOffset=0.0 +roiHeight=-1 +roiWidth=-1 +roiX=0 +roiY=0 +rotation=0.0 +rotationCrop=false +scale=1.0 +spatialCalOffsetX=NaN +spatialCalOffsetY=NaN +spatialCalScaleX=NaN +spatialCalScaleY=NaN +spatialCalUnits=mm +transpose=false diff --git a/devices/src2.properties b/devices/src2.properties new file mode 100644 index 0000000..703d513 --- /dev/null +++ b/devices/src2.properties @@ -0,0 +1,24 @@ +#Wed Mar 28 09:28:43 CEST 2018 +colormap=Grayscale +colormapAutomatic=true +colormapMax=NaN +colormapMin=NaN +flipHorizontally=false +flipVertically=false +grayscale=false +invert=false +rescaleFactor=1.0 +rescaleOffset=0.0 +roiHeight=-1 +roiWidth=-1 +roiX=0 +roiY=0 +rotation=0.0 +rotationCrop=false +scale=1.0 +spatialCalOffsetX=NaN +spatialCalOffsetY=NaN +spatialCalScaleX=NaN +spatialCalScaleY=NaN +spatialCalUnits=mm +transpose=false diff --git a/script/MPI.py b/script/MPI.py new file mode 100644 index 0000000..cb8fafa --- /dev/null +++ b/script/MPI.py @@ -0,0 +1,3 @@ +DKS='X01DC-MPI-DKS2:MOT' + +caput(DKS,16) diff --git a/script/local.groovy b/script/local.groovy new file mode 100644 index 0000000..eef7106 --- /dev/null +++ b/script/local.groovy @@ -0,0 +1,3 @@ +/////////////////////////////////////////////////////////////////////////////////////////////////// +// Deployment specific global definitions - executed after startup.groovy +/////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/script/local.js b/script/local.js new file mode 100644 index 0000000..e2eeaad --- /dev/null +++ b/script/local.js @@ -0,0 +1,4 @@ +/////////////////////////////////////////////////////////////////////////////////////////////////// +// Deployment specific global definitions - executed after startup.js +/////////////////////////////////////////////////////////////////////////////////////////////////// + diff --git a/script/local.py b/script/local.py new file mode 100644 index 0000000..9dc8b0d --- /dev/null +++ b/script/local.py @@ -0,0 +1,4 @@ +################################################################################################### +# Deployment specific global definitions - executed after startup.py +################################################################################################### + diff --git a/script/test.scan b/script/test.scan new file mode 100644 index 0000000..d793c79 --- /dev/null +++ b/script/test.scan @@ -0,0 +1 @@ +[ "Continuous", [ [ "Device", "dks", 15.0, 16.0, 0.1 ] ], [ [ "Device", "sensor", 1, 0.0, "Enabled" ] ], false, [ ], "", 2, 5.0, 0.0, false, false, true, true, "", "", "", "", 0, null, null, "Positioner", false ] \ No newline at end of file diff --git a/script/test/TestContinuous.py b/script/test/TestContinuous.py new file mode 100644 index 0000000..23cb0de --- /dev/null +++ b/script/test/TestContinuous.py @@ -0,0 +1,10 @@ + + +def before_pass(pass_no, scan): + print pass_no + if pass_no == scan.numberOfPasses: + pass +#sensor.setTrustedMonitor(False) +#sensor.setForcedRead(True) +cscan([dks], [dks.readback], [15.0], [17.0], [0.1], latency=0.0, time=3.0, relative=False, passes=2, zigzag=True, name='test', \ + before_pass = before_pass ) \ No newline at end of file diff --git a/script/test/test.scan b/script/test/test.scan new file mode 100644 index 0000000..045336e --- /dev/null +++ b/script/test/test.scan @@ -0,0 +1 @@ +[ "Linear", [ [ "Device", "dks", 15.0, 17.0, 0.1 ] ], [ [ "Device", "sensor", 1, 0.0, "Enabled" ] ], false, [ ], "", 1, 1.0, 0.0, false, false, true, true, "", "", " ", " ", 0, null, null, "Positioner", false ] \ No newline at end of file