Files
gac-x04sa 474a232276 Closedown
2018-01-22 11:13:17 +01:00

99 lines
3.0 KiB
Java

import java.io.IOException;
import ch.psi.pshell.epics.AreaDetector;
public class Pilatus extends AreaDetector{
public Pilatus(final String name, final String prefix){
super(name, prefix);
}
public void setPhiIncr(double value) throws IOException, InterruptedException{
writeCtrl("PhiIncr", value);
}
public double getPhiIncr() throws IOException, InterruptedException{
return (Double) readCtrl("PhiIncr", Double.class);
}
public void setChi(double value) throws IOException, InterruptedException{
writeCtrl("Chi", value);
}
public double getChi() throws IOException, InterruptedException{
return (Double) readCtrl("Chi", Double.class);
}
public void setChiIncr(double value) throws IOException, InterruptedException{
writeCtrl("ChiIncr", value);
}
public double getChiIncr() throws IOException, InterruptedException{
return (Double) readCtrl("ChiIncr", Double.class);
}
public void setOmega(double value) throws IOException, InterruptedException{
writeCtrl("Omega", value);
}
public double getOmega() throws IOException, InterruptedException{
return (Double) readCtrl("Omega", Double.class);
}
public void setStartAngle(double value) throws IOException, InterruptedException{
writeCtrl("StartAngle", value);
}
public double getStartAngle() throws IOException, InterruptedException{
return (Double) readCtrl("StartAngle", Double.class);
}
public void setOmegaIncr(double value) throws IOException, InterruptedException{
writeCtrl("OmegaIncr", value);
}
public double getOmegaIncr() throws IOException, InterruptedException{
return (Double) readCtrl("OmegaIncr", Double.class);
}
public void setAngleIncr(double value) throws IOException, InterruptedException{
writeCtrl("AngleIncr", value);
}
public double getAngleIncr() throws IOException, InterruptedException{
return (Double) readCtrl("AngleIncr", Double.class);
}
public void setKappa(double value) throws IOException, InterruptedException{
writeCtrl("Kappa", value);
}
public double getKappa() throws IOException, InterruptedException{
return (Double) readCtrl("Kappa", Double.class);
}
public void setPhi(double value) throws IOException, InterruptedException{
writeCtrl("Phi", value);
}
public double getPhi() throws IOException, InterruptedException{
return (Double) readCtrl("Phi", Double.class);
}
public void setFileNumber(int value) throws IOException, InterruptedException{
writeCtrl("FileNumber", value);
}
public int getFileNumber() throws IOException, InterruptedException{
return (Integer) readCtrl("FileNumber", Integer.class);
}
public void setFileName(String value) throws IOException, InterruptedException{
writeCtrl("FileName", value.getBytes());
}
public String getFileName() throws IOException, InterruptedException{
return new String((byte[]) readCtrl("FileName", byte[].class));
}
}