MCCDriver#
- class MCCDriver(device_id: str, buffer_multiplier: int = 2)[source]#
Bases:
DAQDriverBaseMCC (Universal Library / mcculw) DAQ driver.
Initialize the MCC DAQ driver.
- Parameters:
device_id – Device unique ID, optionally with a board number as
"<serial>:<board_number>"(e.g."344371:0"). Defaults to board 0.buffer_multiplier – Circular-buffer size relative to per-fetch size. Higher values tolerate more jitter at the cost of memory.
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
Disconnect from MCC device. |
|
Close the relay (connect the circuit). |
|
Deprecated: use |
|
Configure a current input channel on the MCC DAQ device. |
|
Configure hardware timing for the specified channels. |
|
Configure a thermocouple input channel on the MCC DAQ device. |
|
Configure a voltage analog input channel on the MCC DAQ device. |
|
Deprecated: use |
|
Register an AO current channel. |
|
Configure a voltage analog output channel on the MCC DAQ device. |
|
Parse |
|
Parse |
|
Parse |
|
Parse |
|
Build a |
|
Block until |
|
Actual hardware sample rate achieved after |
|
Device capabilities snapshot captured at |
|
Connect to MCC device. |
|
Open the relay (disconnect the circuit). |
|
Read from analog input channels; thermocouple channels return temperature in their configured unit. |
|
Read 0/1 from a single DI line ( |
|
Read an N-bit value from a DI port (bit i reflects line i). |
|
Start the MCC DAQ device for hw timed data acquisition. |
|
Stop the MCC DAQ device. |
|
Write an analog value to an analog output channel. |
|
Write 0/1 to a single DO line ( |
|
Write an N-bit value to a DO port (bit i drives line i). |