@@ -1751,6 +1751,7 @@ static Function DC_ITC_MakeTTLWave(panelTitle, rackNo)
17511751 string stimSetWaveNote = ""
17521752 string stimSetchecksum = ""
17531753 string stimSetLength = ""
1754+ string setCycleCounts = ""
17541755
17551756 WAVE statusTTLFiltered = DC_GetFilteredChannelState ( panelTitle, DATA_ACQUISITION_MODE, CHANNEL_TYPE_TTL)
17561757
@@ -1786,6 +1787,7 @@ static Function DC_ITC_MakeTTLWave(panelTitle, rackNo)
17861787 if ( ! statusTTLFiltered[ i ])
17871788 if ( i >= first && i <= last)
17881789 setSweepCounts = AddListItem ( "" , setSweepCounts, ";" , inf )
1790+ setCycleCounts = AddListItem ( "" , setCycleCounts, ";" , inf )
17891791 endif
17901792
17911793 indexingEndStimset = AddListItem ( "" , indexingEndStimset, ";" , inf )
@@ -1814,17 +1816,20 @@ static Function DC_ITC_MakeTTLWave(panelTitle, rackNo)
18141816 bit = 2^ ( i - first)
18151817 MultiThread TTLWave[ 0, lastIdx] += bit * TTLStimSet[ p][ col]
18161818 setSweepCounts = AddListItem ( num2str ( col) , setSweepCounts, ";" , inf )
1819+ setCycleCounts = AddListItem ( num2str ( setCycleCount) , setCycleCounts, ";" , inf )
18171820 endif
18181821 endfor
18191822
18201823 if ( rackNo == RACK_ZERO)
18211824 sweepDataLNB[ 0 ][ %$ "TTL rack zero bits" ][ INDEP_HEADSTAGE] = bits
18221825 sweepDataTxTLNB[ 0 ][ %$ "TTL rack zero stim sets" ][ INDEP_HEADSTAGE] = listOfSets
18231826 sweepDataTxTLNB[ 0 ][ %$ "TTL rack zero set sweep counts" ][ INDEP_HEADSTAGE] = setSweepCounts
1827+ sweepDataTxTLNB[ 0 ][ %$ "TTL rack zero set cycle counts" ][ INDEP_HEADSTAGE] = setCycleCounts
18241828 else
18251829 sweepDataLNB[ 0 ][ %$ "TTL rack one bits" ][ INDEP_HEADSTAGE] = bits
18261830 sweepDataTxTLNB[ 0 ][ %$ "TTL rack one stim sets" ][ INDEP_HEADSTAGE] = listOfSets
18271831 sweepDataTxTLNB[ 0 ][ %$ "TTL rack one set sweep counts" ][ INDEP_HEADSTAGE] = setSweepCounts
1832+ sweepDataTxTLNB[ 0 ][ %$ "TTL rack one set cycle counts" ][ INDEP_HEADSTAGE] = setCycleCounts
18281833 endif
18291834
18301835 sweepDataTxTLNB[ 0 ][ %$ "TTL Indexing End stimset" ][ INDEP_HEADSTAGE] = indexingEndStimset
@@ -1845,6 +1850,7 @@ static Function DC_NI_MakeTTLWave(panelTitle)
18451850 string stimSetWaveNote = ""
18461851 string stimSetChecksum = ""
18471852 string stimSetLength = ""
1853+ string setCycleCounts = ""
18481854
18491855 WAVE statusTTLFiltered = DC_GetFilteredChannelState ( panelTitle, DATA_ACQUISITION_MODE, CHANNEL_TYPE_TTL)
18501856 WAVE /T allSetNames = DAG_GetChannelTextual ( panelTitle, CHANNEL_TYPE_TTL, CHANNEL_CONTROL_WAVE)
@@ -1858,6 +1864,7 @@ static Function DC_NI_MakeTTLWave(panelTitle)
18581864 if ( ! statusTTLFiltered[ i ])
18591865 listOfSets = AddListItem ( "" , listOfSets, ";" , inf )
18601866 setSweepCounts = AddListItem ( "" , setSweepCounts, ";" , inf )
1867+ setCycleCounts = AddListItem ( "" , setCycleCounts, ";" , inf )
18611868 channels = AddListItem ( "" , channels, ";" , inf )
18621869 indexingEndStimset = AddListItem ( "" , indexingEndStimset, ";" , inf )
18631870 stimSetWaveNote = AddListItem ( "" , stimSetWaveNote, ";" , inf )
@@ -1875,6 +1882,7 @@ static Function DC_NI_MakeTTLWave(panelTitle)
18751882
18761883 listOfSets = AddListItem ( set, listOfSets, ";" , inf )
18771884 setSweepCounts = AddListItem ( num2str ( col) , setSweepCounts, ";" , inf )
1885+ setCycleCounts = AddListItem ( num2str ( setCycleCount) , setCycleCounts, ";" , inf )
18781886 channels = AddListItem ( num2str ( i ) , channels, ";" , inf )
18791887 indexingEndStimset = AddListItem ( allSetNamesIndexingEnd[ i ] , indexingEndStimset, ";" , inf )
18801888 stimSetWaveNote = AddListItem ( URLEncode ( note ( TTLStimSet)) , stimSetWaveNote, ";" , inf )
@@ -1889,6 +1897,7 @@ static Function DC_NI_MakeTTLWave(panelTitle)
18891897 sweepDataTxTLNB[ 0 ][ %$ "TTL channels" ][ INDEP_HEADSTAGE] = channels
18901898 sweepDataTxTLNB[ 0 ][ %$ "TTL stim sets" ][ INDEP_HEADSTAGE] = listOfSets
18911899 sweepDataTxTLNB[ 0 ][ %$ "TTL set sweep counts" ][ INDEP_HEADSTAGE] = setSweepCounts
1900+ sweepDataTxTLNB[ 0 ][ %$ "TTL set cycle counts" ][ INDEP_HEADSTAGE] = setCycleCounts
18921901 sweepDataTxTLNB[ 0 ][ %$ "TTL Indexing End stimset" ][ INDEP_HEADSTAGE] = indexingEndStimset
18931902 sweepDataTxTLNB[ 0 ][ %$ "TTL Stimset wave note" ][ INDEP_HEADSTAGE] = stimSetWaveNote
18941903 sweepDataTxTLNB[ 0 ][ %$ "TTL Stim Wave Checksum" ][ INDEP_HEADSTAGE] = stimSetChecksum
0 commit comments