@ Override public void shutdown ( ) { // prevent reentrant invocation if ( isShutdown ( ) ) return ; // perform shutdown login in base super . shutdown ( ) ; try { // iterate over all pins and apply shutdown values if configured for the pin instance for ( Pin pin : allPins ) { Double value = getShutdownValue ( pin ) . doubleValue ( ) ; if ( value != null ) { setValue ( pin , value ) ; } } } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
This method is used by the framework to shutdown the DAC instance and apply any configured shutdown values to the DAC pins .