(self, task_handle)
Instantiates and populates various attributes used by this task.

        Args:
            task_handle (TaskHandle): Specifies the handle for this task.
Instantiates and populates various attributes used by this task.
Instantiates and populates various attributes used by this task .
def _initialize(self, task_handle):
        """
        Instantiates and populates various attributes used by this task.

        Args:
            task_handle (TaskHandle): Specifies the handle for this task.
        """
        # Saved name is used in self.close() to throw graceful error on
        # double closes.
        self._saved_name = self.name

        self._ai_channels = AIChannelCollection(task_handle)
        self._ao_channels = AOChannelCollection(task_handle)
        self._ci_channels = CIChannelCollection(task_handle)
        self._co_channels = COChannelCollection(task_handle)
        self._di_channels = DIChannelCollection(task_handle)
        self._do_channels = DOChannelCollection(task_handle)
        self._export_signals = ExportSignals(task_handle)
        self._in_stream = InStream(self)
        self._timing = Timing(task_handle)
        self._triggers = Triggers(task_handle)
        self._out_stream = OutStream(self)

        # These lists keep C callback objects in memory as ctypes doesn't.
        # Program will crash if callback is made after object is garbage
        # collected.
        self._done_event_callbacks = []
        self._every_n_transferred_event_callbacks = []
        self._every_n_acquired_event_callbacks = []
        self._signal_event_callbacks = []
def _initialize ( self , task_handle ) : # Saved name is used in self.close() to throw graceful error on # double closes. self . _saved_name = self . name self . _ai_channels = AIChannelCollection ( task_handle ) self . _ao_channels = AOChannelCollection ( task_handle ) self . _ci_channels = CIChannelCollection ( task_handle ) self . _co_channels = COChannelCollection ( task_handle ) self . _di_channels = DIChannelCollection ( task_handle ) self . _do_channels = DOChannelCollection ( task_handle ) self . _export_signals = ExportSignals ( task_handle ) self . _in_stream = InStream ( self ) self . _timing = Timing ( task_handle ) self . _triggers = Triggers ( task_handle ) self . _out_stream = OutStream ( self ) # These lists keep C callback objects in memory as ctypes doesn't. # Program will crash if callback is made after object is garbage # collected. self . _done_event_callbacks = [ ] self . _every_n_transferred_event_callbacks = [ ] self . _every_n_acquired_event_callbacks = [ ] self . _signal_event_callbacks = [ ]