New ScreenPanel

This commit is contained in:
2018-01-19 10:56:53 +01:00
commit ae4d621609
580 changed files with 46598 additions and 0 deletions

24
plugins/RotationReadback.java Executable file
View File

@@ -0,0 +1,24 @@
import ch.psi.pshell.device.AccessType;
import ch.psi.pshell.epics.ChannelDouble;
import ch.psi.utils.Convert;
/*
* Copyright (c) 2014 Paul Scherrer Institute. All rights reserved.
*/
/**
*
*/
public class RotationReadback extends ChannelDouble {
public RotationReadback(String name, String channelName) {
super(name, channelName);
setAccessType(AccessType.Read);
}
@Override
protected Double convertFromRead(Double value) {
return Convert.toDegrees0To360(value);
}
}