#NEWLINE# def __init__( self , phys_channel , channel_name = '' , terminal = 'default' , min_max = ( ( - 1 ) , ( - 1 ) ) , units = 'volts' ) : #NEWLINE# #INDENT# terminal_val = self . terminal_map [ terminal ] #NEWLINE# if ( units != 'volts' ) : #NEWLINE# #INDENT# custom_scale_name = units #NEWLINE# units = Constants . FROM_CUSTOM_SCALE #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# custom_scale_name = None #NEWLINE# units = Constants . VOLTS #NEWLINE# #UNINDENT# err = self . lib . CreateAOVoltageChan ( phys_channel , channel_name , min_max [ 0 ] , min_max [ 1 ] , units , custom_scale_name )