14 Commits

Author SHA1 Message Date
0b9ee77f76 Merge branch 'master' into 1.0.0 2013-10-02 13:05:36 +02:00
81af4449dc FDA-81
Reverted change that filename inside xml always matches that actual
filename.
2013-09-30 08:38:12 +02:00
cbef08682a Added comments and modified some test 2013-08-29 08:11:35 +02:00
7f59fc1ab2 Changes for parameters, ... 2013-08-02 15:18:18 +02:00
d915137288 Added test code for r/edescriptors ... 2013-08-02 12:38:58 +02:00
ef1b318017 Latest ideas and tests for FDA NG 2013-07-31 13:03:37 +02:00
26f2897a7e Fixed asynchronous/nowait confusion 2013-07-30 15:37:06 +02:00
6fedd86d23 reorganized again
debugging some channel access problems ...
2013-07-30 13:19:55 +02:00
f84a5696b0 reorganized package structure for new dataacquisition engine 2013-07-30 11:36:26 +02:00
e64d341a38 Changes 2013-07-29 15:22:33 +02:00
bc0763a22c Now all action related methods should work ... 2013-07-29 11:18:20 +02:00
4a59731669 Started new concept to generate an acquisition script instead of using
complex objects that need to be maintained by ourself
2013-07-26 13:40:06 +02:00
1d05d36b5c Moved to newest jcae 2013-07-25 08:22:24 +02:00
93cd7668b6 Starting with 2.0.0 development 2013-07-23 13:41:52 +02:00
2 changed files with 23 additions and 23 deletions

View File

@@ -47,7 +47,7 @@ import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import ch.psi.fda.model.v1.Configuration;
import ch.psi.fda.model.v1.Data;
//import ch.psi.fda.model.v1.Data;
/**
* Manage the serialization and deserialization of the model
@@ -113,13 +113,13 @@ public class ModelManager {
try{
Configuration model = (Configuration) u.unmarshal(bsource, Configuration.class).getValue();
// Ensure that the filename inside the xml file is always the file name
Data d = model.getData();
if(d==null){
d = new Data();
model.setData(d);
}
d.setFileName(file.getName().replaceAll("\\.xml$", ""));
// // Ensure that the filename inside the xml file is always the file name
// Data d = model.getData();
// if(d==null){
// d = new Data();
// model.setData(d);
// }
// d.setFileName(file.getName().replaceAll("\\.xml$", ""));
return (model);
}
@@ -153,13 +153,13 @@ public class ModelManager {
try{
Configuration model = (Configuration) u.unmarshal(new StreamSource(file), Configuration.class).getValue();
// Ensure that the filename inside the xml file is always the file name
Data d = model.getData();
if(d==null){
d = new Data();
model.setData(d);
}
d.setFileName(file.getName().replaceAll("\\.xml$", ""));
// // Ensure that the filename inside the xml file is always the file name
// Data d = model.getData();
// if(d==null){
// d = new Data();
// model.setData(d);
// }
// d.setFileName(file.getName().replaceAll("\\.xml$", ""));
return (model);
}
@@ -192,13 +192,13 @@ public class ModelManager {
Schema schema = sf.newSchema(new Source[]{s}); // Use schema reference provided in XML
m.setSchema(schema);
// Set scan name equal to file name
Data d = model.getData();
if(d==null){
d = new Data();
model.setData(d);
}
d.setFileName(file.getName().replaceAll("\\.xml$", ""));
// // Set scan name equal to file name
// Data d = model.getData();
// if(d==null){
// d = new Data();
// model.setData(d);
// }
// d.setFileName(file.getName().replaceAll("\\.xml$", ""));
m.marshal( new JAXBElement<Configuration>(qname, Configuration.class, model ), file);
}

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration xmlns="http://www.psi.ch/~ebner/models/scan/1.0" numberOfExecution="1" failOnSensorError="true">
<data format="txt" fileName="scan1d"/>
<data format="txt" fileName="scan1d_plus_bla"/>
<scan>
<dimension zigzag="true">
<positioner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinearPositioner" name="MTEST-HW3:MOT1" settlingTime="0.1" doneValue="1" doneDelay="0.0" id="id0">