DAQDriverBase#
- class DAQDriverBase[source]#
Bases:
ABCVendor DAQ driver contract.
The driver is the single source of truth for configured channels and timing config, held in private dicts/slots that
__init__initializes so every concrete driver has the same shape; subclasses callsuper().__init__()and then populate those privates inside their ownconfigure_*methods (self._ai_channels[channel.alias] = channel,self._ai_hw_timing_config = hw_timing_config, etc.). Read-only@propertyaccessors hand back frozen snapshots so the state can’t be mutated from outside theconfigure_*path;InstroDAQexposes the same snapshots for user introspection — it does not keep its own copies.
Attributes
Frozen snapshot of configured AI channels, keyed by alias. |
|
Frozen snapshot of configured AO channels, keyed by alias. |
|
Frozen snapshot of all configured AI/AO/DI/DO channels (excludes relays). |
|
Frozen snapshot of configured DI channels, keyed by alias. |
|
Frozen snapshot of configured DO channels, keyed by alias. |
|
Frozen snapshot of configured relay channels, keyed by alias. |
|
Methods
Close every task/handle owned by the driver. |
|
Close the relay (connect the circuit). |
|
Deprecated: implement |
|
Register an AI current channel. |
|
Configure hardware-timed AI sampling at |
|
Register an AI thermocouple channel. |
|
Register an AI voltage channel with the underlying driver. |
|
Deprecated: implement |
|
Register an AO current channel. |
|
Register an AO voltage channel. |
|
Parse, program, and register a DI line channel. |
|
Parse, program, and register a DI port channel. |
|
Parse, program, and register a DO line channel. |
|
Parse, program, and register a DO port channel. |
|
Build a |
|
Block until |
|
Actual hardware sample rate achieved after |
|
Open the underlying transport (or verify the device is present, for handle-less SDKs). |
|
Open the relay (disconnect the circuit). |
|
Software-timed read of every configured AI channel. |
|
Sample a single DI line. |
|
Sample a multi-line DI port. |
|
Start hardware-timed acquisition. |
|
Stop a running acquisition and release any scan buffers. |
|
Write |
|
Drive a single DO line. |
|
Drive a multi-line DO port. |