import ch.psi.pshell.device.RegisterBase as RegisterBase

//@groovy.transform.InheritConstructors
class AnalogOutput extends RegisterBase<Number>   {
	Number val = 0.0	
    AnalogOutput(String name) {
         super(name)
     }	
    def Number doRead(){
        return val
    }
    def void doWrite(Number val){
        this.val = val
    }
}


ao1 = new AnalogOutput("ao1")

add_device(ao1, true)