READVHLVDATAFILE-ReadLabViewdatafromtheVHLabformat[T,D,TOTAL_SAMPLES,TOTAL_TIME]=READVHLVDATAFILE(FILENAME,HEADERSTRUCT,CHANNELNUMS,T0,T1)ThisfunctionreadsdatafromthemultichannelVHLabLabViewbinarydatafileformat.FILENAMEisthenameofthefiletoopen,HEADERSTRUCTistheheaderstructureasreturnedfromREADVHLVHEADERFILE,CHANNELNUMSarethechannelnumberstoread,where0isthefirstchannelinthelistthatwasacquiredinLabView,1isthesecondchannel,etc.SeetheHEADERSTRUCTtolearnthemappingbetweenthechannellistandtheinputsofthedevice(suchasai0,ai1,... portsontheNationalInstrumentscard).IfHEADERSTRUCTisempty,thenafilewiththesamenamebutwithextension.vlhisopenedastheheaderfile.T0isthetimerelativetothebeginningoftherecordingtostartreadingfrom,andT1isthetimerelativetothebeginningoftherecordingtoreadto.TOTAL_SAMPLESistheestimatednumberoftotalsamplesinthefile.TOTAL_TIMEistheestimatedtimelengthofthefile.Thedatacanbestoredin2differentbinaryformats.Ifthe'Multiplexed'fieldofHEADERSTRUCTisnotprovidedoris0,thenthedataareassumedtotobestoredinbinarychunkswithheaderstruct.SamplesPerChunksamplesofchannel1stored,followedbyheaderstruct.SamplesPerChunksamplesofchannel2stored,etc.Ifheaderstruct.Multiplexedis1,thenthesamplesareperfectlymultiplexedsothatsample1isthefirstsampleofchannel1,sample2isthefirstsampleofchannel2,andsoon.Example:myheader=readvhlvheaderfile('vhlvanaloginput.vlh');% read from 0 to 5 seconds on the first channel acquired[T,D]=readvhlvdatafile('vhlvanaloginput.vld',myheader,1,0,5);figure;plot(T,D);xlabel('Time(s)');ylabel('Volts');% or mV or microV, whatever the units were