openNEVOpensan.nevfileforreading,returnsallfileinformationinaNEVstructure.WorkswithFileSpec2.1&2.2&2.3.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%UseOUTPUT=openNEV(fname,'noread','report','noparse','nowarning','nosave','nomat','uV','overwrite').NOTE:Allinputargumentsareoptional.Inputargumentsmaybeinanyorder.fname:Nameofthefiletobeopened.Ifthefnameisomittedtheuserwillbepromptedtoselectafileusinganopenfileuserinterface.DEFAULT:WillopenOpenFileUI.'noread':Willnotreadthespikewaveformsifuserpassesthisargument.DEFAULT:willreadspikewaveform.'report':Willshowasummaryreportifuserpassesthisargument.DEFAULT:willnotshowreport.'parse':ThecodewillnotparsetheexperimentalparametersindigitalI/O.Seebelowforguidelinesonhowtoformatyourparameters.DEFAULT:willnotparsetheparameters.'nowarning':Thecodewillnotgiveawarningifthereisanerrorinparsing.DEFAULT:willgivewarningmessage.'nosave':ThecodewillnotsaveacopyoftheNEVstructureasaMATfile.BydefaultthecodewillsaveacopyinthesamefolderastheNEVfileforeasyfutureaccess.DEFAULT:willsavetheMATfile.'nomat':WillnotlookforaMATfile.ThisoptionwillforceopenNEVtoopenaNEVfileinsteadofanyavailableMATfiles.DEFAULT:willloadtheMATfileifavailable.'uV':WillreadthespikewaveformsinunitofuVinsteadofrawvalues.Notethatthisconversionmayleadtolossofinformation(e.g.15/4=4)sincethewaveformstypewillstayinint16.It's recommended to read raw spikewaveformsandthenperformtheconversionatalatertime.DEFAULT:willreadwaveforminformationinraw.'8bits':Indicatesthat8bitsonthedigitalIOportwasusedinsteadof16bits.DEFAULT:willassumesthat16bitsofdigitalIOwereused.'t:':IndicatsthetimewindowoftheNEVfiletoberead.Forexample,ift:issetto2(i.e.'t:0.6')thenonlythefirst2secondsofthefileistoberead.Ifsetto2-50(i.e.'t:2:50) then the time between 2 secondsand50secondswillberead.DEFAULT:theentirefilewillbereadif't:xx:xx'isnotpassedtothefunction.'overwrite':IfMATLABloadsaNEVfileusing'nomat'andaMATfilealreadyexists,bydefaultitwillprompttheusertoallowforoverwritingtheoldMAT.Passingthe'overwrite'flagwillautomaticallyoverwritethenewlyopenedNEVfileonttheoldMATfile.DEFAULT:willasktheuserwhethertooverwritetheoldMAT.OUTPUT:ContainstheNEVstructure.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%USAGEEXAMPLE:openNEV('report','read');Intheexampleabove,thefiledialoguewillpromptforafile.Areportofthefilecontentswillbeshown.Thedigitaldatawillnotbeparsed.Thedataneedstobeintheproperformat(referbelow).ThespikewaveformsareinrawunitsandnotinuV.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%DIGITALPARAMETERS/MARKERSFORMAT:Inorderforthisfunctiontoparseyourexperimentalparameterstheyneedtobeinthefollowingformat:*ParamLabel:Parameter1=value1;Parameter2=value2;Parameter3=value3;#TWOEXAMPLES:*ExpParameter:Intensity=1.02;Duration=400;Trials=1;PageSegment=14;#*Stimulation:StimCount=5;Duration=10;#Inthefirstexample,theparameterisoftype"ExpParameter".Theparametersare,"Intensity, Duration, Trials, and PageSement."Thevaluesofthoseparametersare,"1.02, 400, 1, and 14,"respectively.Thesecondexampleisoftype"Stimulation".Thenameoftheparametersare"StimCount"and"Duration"andthevaluesare"5"and"10"respectively.-----------------------------------------------------------------------Itcanalsoreadsinglevaluemarkersthatfollowthefollowingformat.*MarkerName=Value;#EXAMPLES:*WaitSeconds=10;# OR *JuiceStatus=ON;#Theabovelineisa"Marker".Themarkervalueis10inthefirstandit's ON in the second example.-----------------------------------------------------------------------Moreover,themarkercouldbeasinglevalue:*MarkerValue#EXAMPLES:*JuiceOff# OR *HandsOnSwitches#-----------------------------------------------------------------------Thelabel,parametername,andvaluesareflexibleandcanbeanything.Theonlyrequiredformattingisthattheuserneedstohavealabelfollowedbyacolon':',followedbyafieldname'MarkerVal',followedbyanequalsign'=',followedbytheparametervalue'10',andendwithasemi-colon';'.NOTE:Everylinerequiresapound-sign'#'attheveryend.Everylinerequiresastarsign'*'attheverybeginning.IfyouuseLabVIEWSendtoCerebus.vibyKianTorabthenthereisnoneedfora'*'inthebeginning.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%KianTorabkian@blackrockmicro.comBlackrockMicrosystems%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%VersionHistory4.4.0.0:-MajorperformanceboostinreadingNEVfileswhentrackingdataisstoredinthefile.4.4.0.2:-Updateddocumentation.4.4.0.3:5January2014-FixedthewayDayOfWeekisreadinMetaTags.-Fixed'noread'argument,sowhenpassed,openNEVwillnotreadthespikewaveforms.4.4.1.0:25January2014-Fixedabugthatresultedfrompassing'read'toopenNEV.4.4.2.0:28February2014-Fixedbugrelatedtoloadingdatawitht:XX:XXargument.4.4.3.0:12June2014-Fixedatypointhehelp.4.4.3.1:13June2014-Updatedtheversionnumbersinthehelpandinthefunctionitself.4.4.3.2:21June2014-FixedabugwhereApplicationnamewasn't being read properly.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%