READ_INTAN_RHD2000_DIRECTORY-ReadsamplesfromanIntandatadirectory(1fileperchannelformat)[DATA,TOTAL_SAMPLES,TOTAL_TIME,BLOCKINFO]=READ_INTAN_RHD2000_DIRECTORY(DIRECTORYNAME,HEADER,CHANNEL_TYPE,CHANNEL_NUMBERS,T0,T1);Inputs:ReadsdatafromtheIntanTechnologies.rhd2000directoryDIRECTORYNAME.ThefileHEADERinformationcanbeprovidedinHEADER.IfHEADERisempty,thenitwillbereadfromthefile.CHANNEL_TYPEisthetypeofchanneltoberead(usetablebelow).CHANNEL_NUMBERSarethethechannelnumbersforwhichtoreturndata(randingfrom1tothenumberofchannelsofthattypesampled).CHANNEL_NUMBERSarefrom1...NwhereNisthenumberofchannelsENABLEDintherecording.1isthefirstchannelenabled,2isthe2ndchannelenabled,etc.OnecanexaminetheheaderfiletoseeitscorrespondancewithIntanbankandchannelindexes(e.g.,thefirstchannelmaybe'amp-A-000').T0isthetimetostartreading(thebeginningoftherecordingis0)andT1isthetimetostopreading.IfT0isnegative,wewillstartwithtime0.IfT1isINF,wewillusetheendtimeofthewholefile.NOTE:ItisassumedthattheDIRECTORYisadirectory/folderwithfileswrittenintheIntan"1 file per channel"format.CHANNEL_TYPEvalues:Value:|Meaning:--------------------------------------------------------------------------'time','timestamps',or1|readtimestampsofsamples'amp','amplifier'or2|readamplifierchannels'aux','aux_in',or3|readauxiliaryinputchannels'supply',or4|readsupplyvoltages'temp',or5|readtemperaturesensor'adc',or6|readanalogtodigitalconvertersignals'din','digital_in',or7|readdigitalinput(asinglechannelof16bitvalues)'dout','digital_out',or8|readdigitaloutputsignal(asinglechannel)Outputs:DATA-eachcolumncontainssamplesfromanindividualchannel;ifmorethanonechannelhasbeenrequested,DATAwillhavemorethanonecolumn.TOTAL_SAMPLES-Thetotalnumberof(amplifierordigital)samplesestimatedtobeinthefile.TOTAL_TIME-Anestimateofthetotaldurationofthetimeseriesdataintherecordedfile,inseconds.Notes:(1)TheIntanRHD2000boardhasitsownclock.AskingthisfunctiontoreadattimeT0=0willreadthefirstsampleinthefile.ThistimemightcorrespondtosomeothertimeontheIntanboard.Readingthe'time'channelwillindicatethetimeofthesampleontheboard's clock.(2)Thisfunctionperformsnofiltering.EveniftheuserhadcheckedfortheRHD2000softwaretousea60Hznotchorahigh-passfilter,thisfunctionreturnstherawdata.Seealso:READ_INTAN_RHD2000_HEADER2020-06-11SDV-wroteit,checkedtime,amp,aux,supply,dincouldusemoretestingwithdifferentchannelconfigurationsandADCandDOUTnote:doutseemstowritetodiskevenifitisnotintheheaderfilebutthisfunctionwillonlyexaminechannelsthatarelistedintheheaderfile