daq.hardware.labjack_u3 module

Abstraction layer and interface utilities for LabJack U3-HV

class daq.hardware.labjack_u3.LabJackU3(device, config_path=None)[source]

Bases: daq.DAQ

Abstraction layer for LabJack U3 (U3-HV or U3-LV) Each interface should take the same constructor arguments and have the same member functions

assemble_command_table(command_table)[source]

Assemble a command block into device-friendly commands

Parameters:command_table (pandas.DataFrame) – Time-series table of commands
close()[source]
  1. End stream
  2. Return to default settings
  3. Close connection to device
command(assembled_commands)[source]

Send commands to device low-level interface

Parameters:assembled_commands (list) – assembled list of device operations
easy_command(command_dict)[source]

!!SLOW!! Intended for manually commanding channels that may not be on the nominal list to reassert

Parameters:command_dict (dict) – Commands indexed by channel
get_config(query=False)[source]

Return current config as json

Parameters:query (bool) – Optional flag to get config directly from device instead of interface class
process_stream_data(stream_data)[source]

Apply device calibrations and reformat stream return

read()[source]

Read values from device

save_config(dst='./')[source]

Save json of pin config, device info, and calibrations

Parameters:dst (str) – destination directory
stream()[source]

Open high-rate read stream

daq.hardware.labjack_u3.replace_char(string, ind, char)[source]