This commit is contained in:
boccioli_m
2016-01-15 15:45:01 +01:00
parent 041c31abfc
commit ebf03886b3
4 changed files with 23 additions and 16 deletions

View File

@@ -1,19 +1,21 @@
:: use this batch to generate the zip archive containing all the
:: files for the testing list plug-in for pshell.
:: Usage: just double-click this bat file.
@echo off
set myvar=
:: list of files to be added into the zip archive
set sources[0]=config\administrator.properties
set sources[1]=config\standard.properties
set sources[2]=config\plugins.properties
set sources[3]=script\local.py
set sources[4]=script\tests\tests
set sources[5]=script\tests\devices
set sources[6]=script\tests\templates
set sources[7]=plugins\
:: zip archive name where to store all the files in the list
set zipfile=pshell-plugin-testing-list.zip
set myvar=
rm %zipfile%
call :concat "C:\Program Files\7-Zip\7z.exe"
@@ -25,11 +27,12 @@ for /F "tokens=2 delims==" %%s in ('set sources[') do call :addfile %%s
echo %myvar%
%myvar%
timeout 4
timeout 3
goto :eof
:addfile
:: 7zip syntax for adding files together with their directory structure
call :concat %1
call :concat %1*
goto :eof

View File

@@ -17,7 +17,12 @@ import javax.swing.JTextField;
* @author boccioli_m
*/
public class Kollimators extends javax.swing.JPanel {
/**
* global variables needed by the class
*/
ChannelDouble channel;
String g_deviceName;
/**
* Creates new form Kollimators
* !!!! COMPULSORY FOR THE CALL FROM THE PLUGIN TESTINGLIST !!!!!
@@ -40,18 +45,17 @@ public class Kollimators extends javax.swing.JPanel {
public void animate(String deviceName) {
g_deviceName = deviceName;
jLabelDeviceName.setText(deviceName);
connectString(deviceName+":STA:2", jTextSta); //for Strings
connect(deviceName+":DIST:2", jTextDist); //for Numbers
connect(deviceName+":IST1:1", jTextIst1);
connect(deviceName+":IST2:1", jTextIst2);
connect(deviceName+":REF1:1", jTextRef1);
connect(deviceName+":REF2:1", jTextRef2);
connectString(deviceName+":STA:2", jTextSta); //connect (like camon) for Strings
connect(deviceName+":DIST:2", jTextDist);//connect (like camon) for Numbers
connect(deviceName+":IST1:1", jTextIst1);//connect (like camon) for Numbers
connect(deviceName+":IST2:1", jTextIst2);//connect (like camon) for Numbers
connect(deviceName+":REF1:1", jTextRef1);//connect (like camon) for Numbers
connect(deviceName+":REF2:1", jTextRef2);//connect (like camon) for Numbers
connect(deviceName+":IST1:1", jTextDir);//TODO: real channel??
connect(deviceName+":STA2:1", jTextRes);//TODO: real channel??
}
ChannelDouble channel;
String g_deviceName;
//Overridable callbacks
public void onInitialize(int runCount) {

Binary file not shown.

View File

@@ -1,5 +1,5 @@
#TestingList for pshell: configuration properties
#Fri Jan 15 13:32:43 CET 2016
#Fri Jan 15 15:44:54 CET 2016
customPanel=
showEnabledTestsOnly=true
listFilter=LabTests2