batlab.channel package¶
Submodules¶
batlab.channel.Channel module¶
-
class
batlab.channel.Channel.
Channel
(bat, slot)¶ Represents one slot or ‘channel’ in a Batlab.
-
bat
¶ The Batlab object to which this channel belongs
-
slot
¶ Integer value of the slot/channel in the Batlab that this object represents
-
name
¶ Name of the cell currently installed in the slot
-
test_type
¶ You can use this to specify a Cycle Test or a simple discharge test
-
test_state
¶ State machine variable for test state. Note that the test state machine is launched in another thread and continuously runs.
-
settings
¶ Settings object containing the test settings
-
cycle_number
()¶ Number of charge/discharge cycles completed
-
end_test
()¶
-
is_testing
()¶ Bool, returns False if the test_state is IDLE.
-
log_lvl2
(type)¶ Logs ‘level 2’ test data to the log file and resets the voltage and current average and resets the charge counter back to zero.
-
runtime
()¶ Time since test started.
-
runtime_cycle
()¶ Time since this test step started
-
start_test
(cellname=None, test_type=None, timeout_time=None)¶ Initialize the test state machine and start a test on this Batlab channel. First sets the Batlab to the settings in the
settings
data member.
-
state_machine_cycletest
(mode, v)¶
-
thd_channel
()¶
-