LabJackTSeriesDriver#
- class LabJackTSeriesDriver(device_id: str, stream_buffer_bytes: int = 0)[source]#
Bases:
DAQDriverBaseLabJack T-series DAQ driver (T4/T7/T8 via the LJM library).
Construct the driver.
- Parameters:
device_id – Device serial number, or “ANY” for the first device found.
stream_buffer_bytes – Device-side stream buffer size, always written when AI hardware timing is configured so no value carries over from an earlier session. 0 selects the device’s own default. Must be a power of 2 and the max is 262144. Setting this prevents the device from dropping scans at high sample rates, which LJM reports as -9999 sample values.
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 LabJack device. |
|
Close the relay (connect the circuit). |
|
Deprecated: use |
|
Register an AI current channel. |
|
Configure hardware timing for the specified channels. |
|
Configure a thermocouple ai channel; volts convert to temperature in the channel's unit on read. |
|
Configure a voltage ai channel on the LabJack device. |
|
Deprecated: use |
|
Register an AO current channel. |
|
Configure a voltage AO channel on the LabJack device. |
|
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 |
|
Get the LabJack device info. |
|
Connect to LabJack device. |
|
Open the relay (disconnect the circuit). |
|
Read from analog input channels. |
|
Sample a single DI line. |
|
Sample a multi-line DI port. |
|
Start the DAQ device for hw timed data acquisition. |
|
Stop the DAQ device. |
|
Write |
|
Drive a single DO line. |
|
Drive a multi-line DO port. |