Skip to content

Commit a9d8a54

Browse files
t-bMichaelHuth
authored andcommitted
Debug: A variable was missed in a rename refactor in a debug code section
Fix: Renamed the variable in TP_TSAnalysis debug section lengthTPInPoints -> lengthTPInPointsADC Add TP_ANALYSIS_DEBUGGING define to list in CompilationTester
1 parent 96fdf24 commit a9d8a54

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Packages/MIES/MIES_TestPulse.ipf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,8 +1059,8 @@ threadsafe Function/DF TP_TSAnalysis(DFREF dfrInp)
10591059
Duplicate data, dfrOut:colors
10601060
Duplicate data, dfrOut:data
10611061
WAVE colors = dfrOut:colors
1062-
colors = 0
1063-
colors[0, lengthTPInPoints - 1] = 100
1062+
colors = 0
1063+
colors[0, tpLengthPointsADC - 1] = 100
10641064
#endif
10651065

10661066
WAVE tpData = GetTPAnalysisDataWave()
@@ -1096,7 +1096,7 @@ threadsafe Function/DF TP_TSAnalysis(DFREF dfrInp)
10961096
DEBUGPRINT_TS("steady state range eng (ms): ", var = refTime)
10971097
DEBUGPRINT_TS("steady state average: ", var = avgTPSS)
10981098
// color steady state
1099-
refpt = lengthTPInPoints - tpStartPoint - evalOffsetPointsCorrected
1099+
refpt = tpLengthPointsADC - tpStartPoint - evalOffsetPointsCorrected
11001100
colors[refpt - evalRange / samplingIntervalADC, refpt] = 50
11011101
// color instantaneous
11021102
refpt = tpStartPoint + evalOffsetPointsCorrected

Packages/tests/Compilation/CompilationTester.ipf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Function/WAVE GetDefines()
7171
"TESTS_WITH_NI_HARDWARE", \
7272
"TESTS_WITH_SUTTER_HARDWARE", \
7373
"WAVECACHE_DISABLED", \
74+
"TP_ANALYSIS_DEBUGGING", \
7475
"THREADING_DISABLED"}
7576

7677
SetDimensionLabelsFromWaveContents(defines)

0 commit comments

Comments
 (0)