From 2782f449b0eccbdde24ce0e8ea62f6d1f079a66b Mon Sep 17 00:00:00 2001 From: Joe <176423185+RoaCode@users.noreply.github.com> Date: Fri, 18 Oct 2024 13:33:54 -0400 Subject: [PATCH] Update src/tm_devices/drivers/pi/scopes/tekscope_2k/tekscope_2k.py Co-authored-by: Nicholas Felt Signed-off-by: Joe <176423185+RoaCode@users.noreply.github.com> --- src/tm_devices/drivers/pi/scopes/tekscope_2k/tekscope_2k.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_2k/tekscope_2k.py b/src/tm_devices/drivers/pi/scopes/tekscope_2k/tekscope_2k.py index ef2037d4..c16213e9 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_2k/tekscope_2k.py +++ b/src/tm_devices/drivers/pi/scopes/tekscope_2k/tekscope_2k.py @@ -42,7 +42,7 @@ def get_available_data_sources(self) -> List[str]: previous_header_state = self.query("HEADER?").split(" ")[-1] # Read previous header state self.write("HEADER 1") # Turn on header state so SELECT query works correctly source_string = self.query("SELECT?") - self.write("HEADER" + previous_header_state) # Return header state back to original + self.write(f"HEADER {previous_header_state}") # Return header state back to original source_string = source_string.split(":")[-1] # Remove :SELECT: from beginning source_list = source_string.split(";")