New ScreenPanel
This commit is contained in:
24
plugins/CustomStopAll.java
Executable file
24
plugins/CustomStopAll.java
Executable file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2014 Paul Scherrer Institute. All rights reserved.
|
||||
*/
|
||||
|
||||
import ch.psi.pshell.ui.Plugin;
|
||||
import ch.psi.pshell.epics.Scienta;
|
||||
import java.util.logging.Level;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public class CustomStopAll implements Plugin {
|
||||
|
||||
//Overridable callbacks
|
||||
@Override
|
||||
public void onStoppedDevices() {
|
||||
try{
|
||||
((Scienta)getDevice("scienta")).zeroSupplies();
|
||||
} catch (Exception ex){
|
||||
getLogger().log(Level.WARNING, null, ex);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user