Files
dev/plugins/CustomStopAll.java
2018-01-19 10:56:53 +01:00

25 lines
495 B
Java
Executable File

/*
* 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);
}
}
}