InstroDAQ#
- class InstroDAQ(
- name: str,
- driver: DAQDriverBase,
- publishers: list[Publisher] | None = None,
- **kwargs,
Bases:
InstrumentInitialize an InstroDAQ.
- Parameters:
name – Channel-name prefix for published data.
driver –
Concrete DAQ driver; owns its own transport:
daq = InstroDAQ( "myDAQ", driver=Keysight34980A("USB0::0x0957::0x0507::MY44001757::INSTR"), )
publishers – Publishers that receive emitted Measurement/Command data.
**kwargs – Default tags applied to every emitted Measurement/Command. Pass
dataset_rid="<rid>"to auto-create a NominalCorePublisher (uses the on-disk ‘default’ Nominal credential).
Attributes
Frozen snapshot of configured AI channels, keyed by alias. |
|
Frozen snapshot of configured AO channels, keyed by alias. |
|
Daemon loop period (s); 0 unless |
|
Return an insertion-ordered snapshot of all published channel names. |
|
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. |
|
The underlying vendor driver. |
|
True once |
|
True once |
|
Frozen snapshot of configured relay channels, keyed by alias. |
Methods
Append |
|
Register a publisher to receive this instrument's Measurement/Command data. |
|
Run full teardown unconditionally: daemon, then publishers, then the driver, which owns its idempotency. |
|
Close relay |
|
Configure the hardware sample clock for AI channels. |
|
Deprecated: use |
|
Configure the software-timed polling rate for AI channels. |
|
Deprecated: use |
|
Configure an analog current input channel. |
|
Configure an analog current output channel. |
|
Configure a digital input line channel. |
|
Deprecated: use |
|
Configure a digital output line channel. |
|
Configure a digital port channel. |
|
Configure a relay channel ( |
|
Configure a thermocouple input channel. |
|
Configure an analog voltage input channel. |
|
Configure an analog voltage output channel. |
|
Replace all daemon functions with a single |
|
Hardware's actual sample rate after |
|
Return the most recent |
|
Publish the current DAQ buffer depth on channel |
|
Return the most recent sample for |
|
Open the underlying driver. |
|
Open relay |
|
Fan |
|
Read one AI/DI channel by alias; returns its Measurement. |
|
Dispatch a hardware-timed buffer fetch or a software-timed conversion based on configuration. |
|
Read AI/DI channels by alias ( |
|
Read DI line |
|
Read DI port |
|
Start acquisition: hardware-timed, or the software-timed daemon when SW timing is configured. |
|
Stop hardware acquisition and the background daemon; tolerant teardown when not open. |
|
Write |
|
Write |
|
Write |
|
Write 0/1 to DO line |
|
Write |