@@ -1758,6 +1758,7 @@ static Function DC_ITC_MakeTTLWave(panelTitle, rackNo)
17581758 string stimSetWaveNote = ""
17591759 string stimSetchecksum = ""
17601760 string stimSetLength = ""
1761+ string setCycleCounts = ""
17611762
17621763 WAVE statusTTLFiltered = DC_GetFilteredChannelState ( panelTitle, DATA_ACQUISITION_MODE, CHANNEL_TYPE_TTL)
17631764
@@ -1793,6 +1794,7 @@ static Function DC_ITC_MakeTTLWave(panelTitle, rackNo)
17931794 if ( ! statusTTLFiltered[ i ])
17941795 if ( i >= first && i <= last)
17951796 setSweepCounts = AddListItem ( "" , setSweepCounts, ";" , inf )
1797+ setCycleCounts = AddListItem ( "" , setCycleCounts, ";" , inf )
17961798 endif
17971799
17981800 indexingEndStimset = AddListItem ( "" , indexingEndStimset, ";" , inf )
@@ -1821,17 +1823,20 @@ static Function DC_ITC_MakeTTLWave(panelTitle, rackNo)
18211823 bit = 2^ ( i - first)
18221824 MultiThread TTLWave[ 0, lastIdx] += bit * TTLStimSet[ p][ col]
18231825 setSweepCounts = AddListItem ( num2str ( col) , setSweepCounts, ";" , inf )
1826+ setCycleCounts = AddListItem ( num2str ( setCycleCount) , setCycleCounts, ";" , inf )
18241827 endif
18251828 endfor
18261829
18271830 if ( rackNo == RACK_ZERO)
18281831 sweepDataLNB[ 0 ][ %$ "TTL rack zero bits" ][ INDEP_HEADSTAGE] = bits
18291832 sweepDataTxTLNB[ 0 ][ %$ "TTL rack zero stim sets" ][ INDEP_HEADSTAGE] = listOfSets
18301833 sweepDataTxTLNB[ 0 ][ %$ "TTL rack zero set sweep counts" ][ INDEP_HEADSTAGE] = setSweepCounts
1834+ sweepDataTxTLNB[ 0 ][ %$ "TTL rack zero set cycle counts" ][ INDEP_HEADSTAGE] = setCycleCounts
18311835 else
18321836 sweepDataLNB[ 0 ][ %$ "TTL rack one bits" ][ INDEP_HEADSTAGE] = bits
18331837 sweepDataTxTLNB[ 0 ][ %$ "TTL rack one stim sets" ][ INDEP_HEADSTAGE] = listOfSets
18341838 sweepDataTxTLNB[ 0 ][ %$ "TTL rack one set sweep counts" ][ INDEP_HEADSTAGE] = setSweepCounts
1839+ sweepDataTxTLNB[ 0 ][ %$ "TTL rack one set cycle counts" ][ INDEP_HEADSTAGE] = setCycleCounts
18351840 endif
18361841
18371842 sweepDataTxTLNB[ 0 ][ %$ "TTL Indexing End stimset" ][ INDEP_HEADSTAGE] = indexingEndStimset
@@ -1852,6 +1857,7 @@ static Function DC_NI_MakeTTLWave(panelTitle)
18521857 string stimSetWaveNote = ""
18531858 string stimSetChecksum = ""
18541859 string stimSetLength = ""
1860+ string setCycleCounts = ""
18551861
18561862 WAVE statusTTLFiltered = DC_GetFilteredChannelState ( panelTitle, DATA_ACQUISITION_MODE, CHANNEL_TYPE_TTL)
18571863 WAVE /T allSetNames = DAG_GetChannelTextual ( panelTitle, CHANNEL_TYPE_TTL, CHANNEL_CONTROL_WAVE)
@@ -1865,6 +1871,7 @@ static Function DC_NI_MakeTTLWave(panelTitle)
18651871 if ( ! statusTTLFiltered[ i ])
18661872 listOfSets = AddListItem ( "" , listOfSets, ";" , inf )
18671873 setSweepCounts = AddListItem ( "" , setSweepCounts, ";" , inf )
1874+ setCycleCounts = AddListItem ( "" , setCycleCounts, ";" , inf )
18681875 channels = AddListItem ( "" , channels, ";" , inf )
18691876 indexingEndStimset = AddListItem ( "" , indexingEndStimset, ";" , inf )
18701877 stimSetWaveNote = AddListItem ( "" , stimSetWaveNote, ";" , inf )
@@ -1882,6 +1889,7 @@ static Function DC_NI_MakeTTLWave(panelTitle)
18821889
18831890 listOfSets = AddListItem ( set, listOfSets, ";" , inf )
18841891 setSweepCounts = AddListItem ( num2str ( col) , setSweepCounts, ";" , inf )
1892+ setCycleCounts = AddListItem ( num2str ( setCycleCount) , setCycleCounts, ";" , inf )
18851893 channels = AddListItem ( num2str ( i ) , channels, ";" , inf )
18861894 indexingEndStimset = AddListItem ( allSetNamesIndexingEnd[ i ] , indexingEndStimset, ";" , inf )
18871895 stimSetWaveNote = AddListItem ( URLEncode ( note ( TTLStimSet)) , stimSetWaveNote, ";" , inf )
@@ -1896,6 +1904,7 @@ static Function DC_NI_MakeTTLWave(panelTitle)
18961904 sweepDataTxTLNB[ 0 ][ %$ "TTL channels" ][ INDEP_HEADSTAGE] = channels
18971905 sweepDataTxTLNB[ 0 ][ %$ "TTL stim sets" ][ INDEP_HEADSTAGE] = listOfSets
18981906 sweepDataTxTLNB[ 0 ][ %$ "TTL set sweep counts" ][ INDEP_HEADSTAGE] = setSweepCounts
1907+ sweepDataTxTLNB[ 0 ][ %$ "TTL set cycle counts" ][ INDEP_HEADSTAGE] = setCycleCounts
18991908 sweepDataTxTLNB[ 0 ][ %$ "TTL Indexing End stimset" ][ INDEP_HEADSTAGE] = indexingEndStimset
19001909 sweepDataTxTLNB[ 0 ][ %$ "TTL Stimset wave note" ][ INDEP_HEADSTAGE] = stimSetWaveNote
19011910 sweepDataTxTLNB[ 0 ][ %$ "TTL Stim Wave Checksum" ][ INDEP_HEADSTAGE] = stimSetChecksum
0 commit comments