READVHLVDATAFILE-ReadLabViewdatafromtheVHLabformat[T,D,TOTAL_SAMPLES,TOTAL_TIME]=vlt.file.custom_file_formats.readvhlvdatafile(FILENAME,HEADERSTRUCT,CHANNELNUMS,T0,T1)ThisfunctionreadsdatafromthemultichannelVHLabLabViewbinarydatafileformat.FILENAMEisthenameofthefiletoopen,HEADERSTRUCTistheheaderstructureasreturnedfromvlt.file.custom_file_formats.readvhlvheaderfile,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=vlt.file.custom_file_formats.readvhlvheaderfile('vhlvanaloginput.vlh');% read from 0 to 5 seconds on the first channel acquired[T,D]=vlt.file.custom_file_formats.readvhlvdatafile('vhlvanaloginput.vld',myheader,1,0,5);figure;plot(T,D);xlabel('Time(s)');ylabel('Volts');% or mV or microV, whatever the units were