.. py:module:: nidcpower :noindex: .. py:currentmodule:: nidcpower.Session .. role:: c(code) :language: c .. role:: python(code) :language: python Repeated Capabilities ===================== Repeated capabilities attributes are used to set the `channel_string` parameter to the underlying driver function call. This can be the actual function based on the :py:class:`Session` method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niDCPower_SetAttributeViInt32()`. Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or :python:`'0:2'` Some repeated capabilities use a prefix before the number and this is optional channels -------- .. py:attribute:: nidcpower.Session.channels[] .. code:: python session.channels['0-2'].channel_enabled = True passes a string of :python:`'0, 1, 2'` to the set attribute function. instruments ----------- .. py:attribute:: nidcpower.Session.instruments[] .. code:: python session.instruments['0-2'].channel_enabled = True passes a string of :python:`'0, 1, 2'` to the set attribute function.