From 40907bab33bfcd9bc7dbb9c9c1a0002d60e4f9a7 Mon Sep 17 00:00:00 2001 From: Nolan Date: Fri, 24 Jun 2022 16:33:57 -0400 Subject: [PATCH] Updated CSV playback to work with the multi-plot view --- src/DataPlotGUI.vb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/DataPlotGUI.vb b/src/DataPlotGUI.vb index 6cf26d1..e0250ea 100644 --- a/src/DataPlotGUI.vb +++ b/src/DataPlotGUI.vb @@ -278,6 +278,11 @@ Public Class DataPlotGUI Exit Sub End If + 'reset to only a single plot view for playback + While numberPlotAreas > 1 + btn_RemovePlot_Click(Nothing, Nothing) + End While + If Not SetupCSVRegs() Then MsgBox("ERROR: Invalid Log CSV") Exit Sub @@ -516,7 +521,7 @@ Public Class DataPlotGUI regCnt = 0 For j As Integer = 0 To regView.RowCount() - 1 regFound = headers.Contains(regView.Item("Label", j).Value.ToString()) - regView.Item("Plot", j).Value = regFound.ToString() + regView.Item("Plot1", j).Value = regFound.ToString() If regFound Then regCnt += 1 End If