nidaqmx.task.ao_channel_collection

class nidaqmx._task_modules.ao_channel_collection.AOChannelCollection(task_handle, interpreter)[source]

Bases: nidaqmx._task_modules.channel_collection.ChannelCollection

Contains the collection of analog output channels for a DAQmx Task.

add_ao_current_chan(physical_channel, name_to_assign_to_channel='', min_val=0.0, max_val=0.02, units=CurrentUnits.AMPS, custom_scale_name='')[source]

Creates channel(s) to generate current.

Parameters
  • physical_channel (str) – Specifies the names of the physical channels to use to create virtual channels. The DAQmx physical channel constant lists all physical channels on devices and modules installed in the system.

  • name_to_assign_to_channel (Optional[str]) – Specifies a name to assign to the virtual channel this function creates. If you do not specify a value for this input, NI-DAQmx uses the physical channel name as the virtual channel name.

  • min_val (Optional[float]) – Specifies in units the minimum value you expect to measure.

  • max_val (Optional[float]) – Specifies in units the maximum value you expect to measure.

  • units (Optional[nidaqmx.constants.CurrentUnits]) – Specifies the units to use to generate current.

  • custom_scale_name (Optional[str]) – Specifies the name of a custom scale for the channel. If you want the channel to use a custom scale, specify the name of the custom scale to this input and set units to FROM_CUSTOM_SCALE.

Returns

Indicates the newly created channel object.

Return type

nidaqmx._task_modules.channels.ao_channel.AOChannel

add_ao_func_gen_chan(physical_channel, name_to_assign_to_channel='', type=FuncGenType.SINE, freq=1000.0, amplitude=5.0, offset=0.0)[source]

Creates a channel for continually generating a waveform on the selected physical channel.

Parameters
  • physical_channel (str) – Specifies the names of the physical channels to use to create virtual channels. The DAQmx physical channel constant lists all physical channels on devices and modules installed in the system.

  • name_to_assign_to_channel (Optional[str]) – Specifies a name to assign to the virtual channel this function creates. If you do not specify a value for this input, NI-DAQmx uses the physical channel name as the virtual channel name.

  • type (Optional[nidaqmx.constants.FuncGenType]) – Specifies the kind of waveform to generate.

  • freq (Optional[float]) – Is the frequency of the waveform to generate in hertz.

  • amplitude (Optional[float]) – Is the zero-to-peak amplitude of the waveform to generate in volts. Zero and negative values are valid.

  • offset (Optional[float]) – Is the voltage offset of the waveform to generate.

Returns

Indicates the newly created channel object.

Return type

nidaqmx._task_modules.channels.ao_channel.AOChannel

add_ao_voltage_chan(physical_channel, name_to_assign_to_channel='', min_val=- 10.0, max_val=10.0, units=VoltageUnits.VOLTS, custom_scale_name='')[source]

Creates channel(s) to generate voltage.

Parameters
  • physical_channel (str) – Specifies the names of the physical channels to use to create virtual channels. The DAQmx physical channel constant lists all physical channels on devices and modules installed in the system.

  • name_to_assign_to_channel (Optional[str]) – Specifies a name to assign to the virtual channel this function creates. If you do not specify a value for this input, NI-DAQmx uses the physical channel name as the virtual channel name.

  • min_val (Optional[float]) – Specifies in units the minimum value you expect to generate.

  • max_val (Optional[float]) – Specifies in units the maximum value you expect to generate.

  • units (Optional[nidaqmx.constants.VoltageUnits]) – Specifies the units to use to generate voltage.

  • custom_scale_name (Optional[str]) – Specifies the name of a custom scale for the channel. If you want the channel to use a custom scale, specify the name of the custom scale to this input and set units to FROM_CUSTOM_SCALE.

Returns

Indicates the newly created channel object.

Return type

nidaqmx._task_modules.channels.ao_channel.AOChannel

property all

nidaqmx._task_modules.channels.channel.Channel: Specifies a channel object that represents the entire list of virtual channels on this channel collection.

property channel_names

Specifies the entire list of virtual channels on this channel collection.

Type

List[str]

count(value) integer -- return number of occurrences of value
index(value[, start[, stop]]) integer -- return first index of value.

Raises ValueError if the value is not present.

Supporting start and stop arguments is optional, but recommended.