def __getitem__(self, index):
"""
Indexes an expiration state on this collection.
Args:
index (str): Name of the physical channel of which the
expiration state to retrieve.
Returns:
nidaqmx.system._watchdog_modules.expiration_state.ExpirationState:
The object representing the indexed expiration state.
"""
if isinstance(index, six.string_types):
return ExpirationState(self._handle, index)
else:
raise DaqError(
'Invalid index type "{0}" used to access expiration states.'
.format(type(index)), -1)
评论列表
文章目录