Finished cleanup
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
BASEDIR=$(cd $(dirname $0);pwd)
|
||||
|
||||
EPICS_DISPLAY_PATH=/work/sls/config/medm:$EPICS_DISPLAY_PATH
|
||||
export EPICS_DISPLAY_PATH
|
||||
|
||||
# OTFSCAN MEDM
|
||||
medm -x -macro "P=MTEST-HW3-OTFX" G_OTFSCAN_user.adl &
|
||||
|
||||
# Motor MEDM
|
||||
medm -x -macro "P=MTEST-HW3:, M=MOT1" motorx_more.adl &
|
||||
#medm -x -macro "ENC=MTEST-HW3:EC1" G_ECM_514A_encoder.adl &
|
||||
|
||||
medm -x -macro "P=MTEST-HW3:, M=MOT2" motorx_more.adl &
|
||||
#medm -x -macro "ENC=MTEST-HW3:EC2" G_ECM_514A_encoder.adl &
|
||||
|
||||
medm -x -macro "P=MTEST-PC-MOTOR:, M=MOT1" motorx_more.adl &
|
||||
|
||||
# Scaler MEDM
|
||||
medm -x -macro "P=MTEST-HW3:, S=JS" scaler16.adl &
|
||||
@@ -1,2 +0,0 @@
|
||||
# Load test template
|
||||
dbLoadTemplate("MTEST-PC-FDA_test.subs")
|
||||
@@ -1,5 +0,0 @@
|
||||
file test.template {
|
||||
{
|
||||
P = MTEST-PC-FDA:
|
||||
}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
MODULE = MTEST-PC-FDA
|
||||
export MODULE
|
||||
|
||||
build:
|
||||
|
||||
clean:
|
||||
|
||||
install: build
|
||||
swit -V -ioc MTEST-PC-FDA
|
||||
|
||||
help:
|
||||
@echo "The following targets are available with this Makefile:-"
|
||||
@echo "make (calls default target)"
|
||||
@echo "make build (default)"
|
||||
@echo "make install"
|
||||
@echo "make clean"
|
||||
@echo "make help"
|
||||
@@ -1,42 +0,0 @@
|
||||
# Binary Output
|
||||
record(bo, "$(P)BO") {
|
||||
field(DESC, "Binary Output")
|
||||
}
|
||||
|
||||
# Binary Output
|
||||
record(bo, "$(P)BO2") {
|
||||
field(DESC, "Binary Output 2")
|
||||
field(VAL, "0")
|
||||
}
|
||||
|
||||
# Analog Output
|
||||
record(ao, "$(P)AO") {
|
||||
field(PREC, "6")
|
||||
field(DESC, "Analog Output")
|
||||
}
|
||||
|
||||
# String Output
|
||||
record(stringout, "$(P)SOUT") {
|
||||
}
|
||||
|
||||
# Double Waveform (100 Elements)
|
||||
record(waveform, "$(P)DWAVE") {
|
||||
field(DESC, "Double Waveform")
|
||||
field(PREC, "6")
|
||||
field(NELM, "100")
|
||||
field(FTVL, "DOUBLE")
|
||||
}
|
||||
|
||||
# Integer Waveform (100 Elements)
|
||||
record(waveform, "$(P)LWAVE") {
|
||||
field(DESC, "Long Waveform")
|
||||
field(NELM, "100")
|
||||
field(FTVL, "LONG")
|
||||
}
|
||||
|
||||
# Character Waveform (100 Elements)
|
||||
record(waveform, "$(P)CWAVE") {
|
||||
field(DESC, "Character Waveform")
|
||||
field(NELM, "100")
|
||||
field(FTVL, "CHAR")
|
||||
}
|
||||
@@ -18,33 +18,13 @@
|
||||
*/
|
||||
package ch.psi.fda.ui;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import ch.psi.fda.ui.AcquisitionMain;
|
||||
|
||||
/**
|
||||
* @author ebner
|
||||
*
|
||||
*/
|
||||
public class AcquisitionMainTest {
|
||||
|
||||
/**
|
||||
* @throws java.lang.Exception
|
||||
*/
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws java.lang.Exception
|
||||
*/
|
||||
@After
|
||||
public void tearDown() throws Exception {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test method for {@link ch.psi.fda.ui.AcquisitionMain#main(java.lang.String[])}.
|
||||
*/
|
||||
|
||||
@@ -21,38 +21,20 @@ package ch.psi.fda.ui;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import ch.psi.fda.ui.ApplicationConfigurator;
|
||||
|
||||
/**
|
||||
* @author ebner
|
||||
*
|
||||
*/
|
||||
public class ApplicationConfiguratorTest {
|
||||
|
||||
private ApplicationConfigurator configurator;
|
||||
|
||||
/**
|
||||
* @throws java.lang.Exception
|
||||
*/
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
System.setProperty(ApplicationConfigurator.FDA_HOME_ARGUMENT, "target/tmp/home");
|
||||
configurator = new ApplicationConfigurator();
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws java.lang.Exception
|
||||
*/
|
||||
@After
|
||||
public void tearDown() throws Exception {
|
||||
}
|
||||
|
||||
@Ignore
|
||||
@Test
|
||||
public void testInitializeApplication() throws IOException{
|
||||
System.setProperty(ApplicationConfigurator.FDA_HOME_ARGUMENT, "target/tmp/home");
|
||||
configurator = new ApplicationConfigurator();
|
||||
configurator.initializeApplication();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* Copyright 2011 Paul Scherrer Institute. All rights reserved.
|
||||
*
|
||||
* This code is free software: you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Lesser General Public License as published by the Free
|
||||
* Software Foundation, either version 3 of the License, or (at your option) any
|
||||
* later version.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but without any
|
||||
* warranty; without even the implied warranty of merchantability or fitness for
|
||||
* a particular purpose. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this code. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
package ch.psi.fda.ui;
|
||||
|
||||
/**
|
||||
* @author ebner
|
||||
*
|
||||
*/
|
||||
public class TestChannels {
|
||||
public static final String BINARY_OUT = "MTEST-PC-FDA:BO";
|
||||
public static final String BINARY_OUT_TWO = "MTEST-PC-FDA:BO2";
|
||||
public static final String ANALOG_OUT = "MTEST-PC-FDA:AO";
|
||||
public static final String STRING_OUT = "MTEST-PC-FDA:SOUT";
|
||||
public static final String DOUBLE_WAVEFORM = "MTEST-PC-FDA:DWAVE";
|
||||
public static final String STRING_OUT_NOT_EXIST = "MTEST-PC-FDA:SOUT-NOT-EXIST";
|
||||
|
||||
public static final String MOTOR_ONE = "MTEST-HW3:MOT1";
|
||||
|
||||
}
|
||||
@@ -1,102 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* Copyright 2012 Paul Scherrer Institute. All rights reserved.
|
||||
*
|
||||
* This code is free software: you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Lesser General Public License as published by the Free
|
||||
* Software Foundation, either version 3 of the License, or (at your option) any
|
||||
* later version.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but without any
|
||||
* warranty; without even the implied warranty of merchantability or fitness for
|
||||
* a particular purpose. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this code. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
package ch.psi.fda.ui;
|
||||
|
||||
/**
|
||||
* @author ebner
|
||||
*
|
||||
*/
|
||||
public class TestConfiguration {
|
||||
private static final TestConfiguration instance = new TestConfiguration();
|
||||
|
||||
private final String otfPrefix = "MTEST-HW3-OTFX";
|
||||
private final String crlogicPrefix = "MTEST-HW3-CRL";
|
||||
private final String prefixScaler = "MTEST-HW3:JS";
|
||||
private final String server = "yoke.psi.ch";
|
||||
private final String share = "/usr/nfs";
|
||||
private final String smbShare = "smb://test:test@"+server+"/nfs/"; // It is important to have the last slash / !
|
||||
|
||||
private final String motor1 = "MTEST-HW3:MOT1";
|
||||
private final String analogIn1 = "MTEST-HW3-AI1:AI_01";
|
||||
|
||||
private TestConfiguration(){
|
||||
}
|
||||
|
||||
public static TestConfiguration getInstance(){
|
||||
return instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the prefix
|
||||
*/
|
||||
public String getCrlogicPrefix() {
|
||||
return crlogicPrefix;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the prefixScaler
|
||||
*/
|
||||
public String getPrefixScaler() {
|
||||
return prefixScaler;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the server
|
||||
*/
|
||||
public String getServer() {
|
||||
return server;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the share
|
||||
*/
|
||||
public String getShare() {
|
||||
return share;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the smbShare
|
||||
*/
|
||||
public String getSmbShare() {
|
||||
return smbShare;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the motor1
|
||||
*/
|
||||
public String getMotor1() {
|
||||
return motor1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the analogIn1
|
||||
*/
|
||||
public String getAnalogIn1() {
|
||||
return analogIn1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the otfPrefix
|
||||
*/
|
||||
public String getOtfPrefix() {
|
||||
return otfPrefix;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -34,8 +34,6 @@ import ch.psi.fda.ui.VisualizationMain;
|
||||
|
||||
/**
|
||||
* Testcase for visualization engine
|
||||
* @author ebner
|
||||
*
|
||||
*/
|
||||
public class VisualizationMainTest {
|
||||
|
||||
|
||||
@@ -26,8 +26,6 @@ import java.util.logging.Logger;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -51,14 +49,6 @@ public class DataVisualizerTest {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(DataVisualizerTest.class.getName());
|
||||
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
}
|
||||
|
||||
@After
|
||||
public void tearDown() throws Exception {
|
||||
}
|
||||
|
||||
@Ignore
|
||||
@Test
|
||||
public void testRun() throws InterruptedException {
|
||||
@@ -68,10 +58,6 @@ public class DataVisualizerTest {
|
||||
metadata.add(new Metadata("id3"));
|
||||
|
||||
EventBus bus = new EventBus();
|
||||
|
||||
// List<SeriesDataFilter> list = new ArrayList<>();
|
||||
// list.add(new XYSeriesDataFilter(, new LinePlot("One")));
|
||||
// list.add(new XYSeriesDataFilter("id1", "id3", new LinePlot("Two")));
|
||||
|
||||
VDescriptor vdescriptor = new VDescriptor();
|
||||
|
||||
@@ -166,7 +152,7 @@ public class DataVisualizerTest {
|
||||
Thread.sleep(10000);
|
||||
}
|
||||
|
||||
// @Ignore
|
||||
@Ignore
|
||||
@Test
|
||||
public void testRun2D() throws InterruptedException {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user