Skip to content

Commit

Permalink
SF: Add support for correct colors of TTL traces
Browse files Browse the repository at this point in the history
- TTL traces use the same color map as the SB/DB
  • Loading branch information
MichaelHuth committed Jul 28, 2023
1 parent b4a5fa0 commit ecb554b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Packages/MIES/MIES_SweepFormula.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,12 @@ Function [STRUCT RGBColor s] SF_GetTraceColor(string graph, string opStack, WAVE
endif

WAVE/Z numericalValues = BSP_GetLogbookWave(graph, LBT_LABNOTEBOOK, LBN_NUMERICAL_VALUES, sweepNumber = sweepNo)
if(WaveExists(numericalValues))
if(!WaveExists(numericalValues))
return [s]
endif
if(channelType == XOP_CHANNEL_TYPE_TTL)
[s] = GetHeadstageColor(NaN, channelType = channelType, channelNumber = channelNumber)
else
headstage = GetHeadstageForChannel(numericalValues, sweepNo, channelType, channelNumber, DATA_ACQUISITION_MODE)
[s] = GetHeadstageColor(headstage)
endif
Expand Down

0 comments on commit ecb554b

Please sign in to comment.