#NEWLINE# def create_channel_frequency( self , counter , name = '' , units = 'hertz' , idle_state = 'low' , delay = 0.0 , freq = 1.0 , duty_cycle = 0.5 ) : #NEWLINE# #INDENT# "\n    Creates channel(s) to generate digital pulses that freq and\n    duty_cycle define and adds the channel to the task.  The\n    pulses appear on the default output terminal of the counter\n    unless you select a different output terminal.\n\n    Parameters\n    ----------\n\n    counter : str\n\n      The name of the counter to use to create virtual\n      channels. You can specify a list or range of physical\n      channels.\n\n    name : str\n\n      The name(s) to assign to the created virtual channel(s). If\n      you do not specify a name, NI-DAQmx uses the physical\n      channel name as the virtual channel name. If you specify\n      your own names for nameToAssignToChannel, you must use the\n      names when you refer to these channels in other NI-DAQmx\n      functions.\n\n      If you create multiple virtual channels with one call to\n      this function, you can specify a list of names separated by\n      commas. If you provide fewer names than the number of\n      virtual channels you create, NI-DAQmx automatically assigns\n      names to the virtual channels.\n\n    units : {'hertz'}\n\n      The units in which to specify freq:\n\n        'hertz' - hertz\n\n    idle_state : {'low', 'high'}\n\n      The resting state of the output terminal.\n\n    delay : float\n\n      The amount of time in seconds to wait before generating the\n      first pulse.\n\n    freq : float\n\n      The frequency at which to generate pulses.\n\n    duty_cycle : float\n\n      The width of the pulse divided by the pulse period. NI-DAQmx\n      uses this ratio, combined with frequency, to determine pulse\n      width and the interval between pulses.\n\n    Returns\n    -------\n\n      success_status : bool\n    " #NEWLINE# counter = str ( counter ) #NEWLINE# name = str ( name ) #NEWLINE# units_map = dict ( hertz = Constants . Val_Hz ) #NEWLINE# idle_state_map = dict ( low = Constants . Val_Low , high = Constants . Val_High ) #NEWLINE# units_val = self . _get_map_value ( 'units' , units_map , units ) #NEWLINE# idle_state_val = self . _get_map_value ( 'idle_state' , idle_state_map , idle_state ) #NEWLINE# self . lib . CreateCOPulseChanFreq ( counter , name , units_val , idle_state_val , delay , freq , duty_cycle )