PicoQuantGmbH MultiHarpSoftwareV.3.1.0.0
8.2. Data File Formats
WhileformanypurposestheASCIIexportofhistogramstofilesortotheclipboardissufficientandeasy,you
alsomaywanttoaccesstheMultiHarpdatafilesviacustomprograms.Thissectionprovidesonlyabriefover-
viewonthefileformat.Fordetailspleaserefertotheonlinehelpfileavailableviathehelpmenu.
Toovercomecertainlimitationsofvariousdifferentformatsusedinthepast,PicoQuantnowusesaunifiedfile
format.Itisdesignedtobefuturepoofinthesensethatfilescreatedbyacurrentsoftwareversionstayvalidfor
futuresoftwarerevisionsand,moreover,filescreatedbyfuturesoftwareversionswillmostlikelystillberead-
ablebyoldersoftware,althoughtheymightcontaininformation,thatsoftwarecan'teven"know"about.Thisis
achievedbyusingataggedformat.Tagsidentifythedatatofollow,andgivethetype,lengthandevenmetain-
formation.Theexactlocationofanindividualiteminthefileisthenirrelevant.Versionrobustnessisgrantedas
longasversion-breakingchangestothesemanticsofagivenfieldareimplementedbyatagwithanewidenti-
fierratherthanexpandingtherangeorinterpretationoftheoldone.Thelistoftags(identifiers)andtheirinter-
pretationrulescanbekeptinatagdictionary.Withthisasaprecondition,thesoftwareonlyhastoshowtoler-
anceonmissingnon-mandatory(i.e.optional)content.
ThenewformatdefinitionunifiesPicoQuant'sexistingfileformatswhichindividuallyevolvedovermanyyears.
TheresultingnewTTTRfileformatwiththeextension*.ptu willbeusedforallcurrentandfutureTCSPC
productssupportingTTTRmodeandenrichesthemwithpowerfulnewfeatures.Similarly,ataggedfileformat
withtheextension*.phucoversthehistogramdataformatsofourcurrentandfutureTCSPCproducts.
Tosupportunderstandingoftheformatandimplementationofcustomsoftwareaccessingthesefiles,asetof
demosisprovidedinthesubfolder \Filedemoinyourchosensoftware installationfolder.Ifyouneedto
evaluatemoreheaderitemsthanthedemosdo,pleaserefertotheMultiHarponlinehelpfileavailableviathe
helpmenu.AfileformatrelatedHTMLhelpfileisalsoprovidedinthefiledemofolder.Itcontainsalistoftag
typesandatagdictionarythatexplainstheindividualitems.Notethatthedictionarycontainsmoreitemsthan
theMultiHarpsoftwareactuallyuses.Itisrecommendedtogobyaspecificfile,haveoneofthedemosreadit
andthenlookatthelistofheaderitemsyouget.YoucanalsousethePicoQuantFileInfoshellextensionthat
willbeinstalledbytheMultiHarpsoftwaresetuptoinspectindividualheaderitemsofa*.ptuor*.phufile.
Justright-clickonthefileinWindowsexplorerandselectProperties.
Despitetheintendedversiontoleranceofthetaggedformat,forconsistencyandsafeversioncheckingtheMul-
tiHarpdatafilesstillcarryaformatversionnumber,whichisnowcalledcontent versionandcurrentlyhasthe
stringvalue“1.0”.InordertoidentifyaMultiHarpdatafileasafilecreatedbyandtobeusedbythenativeMulti-
Harpsoftwarethereisatagassured content whichbeginswiththestring“MultiHarp“.Thereisalsoapairof
tagscreatornameandcreatorversionthatidentifythecreatingsoftware.Programmersofcustomsoftwarewrit-
ingsuchfilesMUSTUSETHEIROWNCREATORNAME.
Notethatdespiteourbesteffortstowardscompatibilityandversiontolerance,fileformatsinfuturesoftwarere-
leasesaresubjecttochangewithoutnotice.
8.2.1. Interactive Mode File Format
Thestandard MultiHarp histogramdatafilescreatedbythe MultiHarp softwareininteractive histogramming
mode(*.phu)aretaggedbinaryfileswhichcontainboththesetupparametersandtheactualhistogramdata.
Thelattercanbepresentmultipletimes,i.e.multiplemeasurementscanbestoredinonefile.Relevantsettings
arestoredforeachmeasurementseparately.InordertoidentifyaMultiHarpdatafileasafilecreatedbyandto
beusedbythenativeMultiHarpsoftware,aprogramreadinginthesefilescanreadthetagassured content
whichbeginswiththestring“MultiHarp“.However,apieceofsoftwareaimingsolelyatretrievingthehistogram
datacontentcan(andshould)betolerantaboutthistagandgoforthepurehistogramdata.Thistolerancewill
ensurecompatibilityforthefuture.Indeed,thedemosinthesubfolder\Filedemoinyourchoseninstallation
directoryarefollowingthistolerantapproach.Formoreinformationonindividualfiletagsandtheircontent,
pleaseconsulttheonlinehelpfileavailableviathehelpmenu.
8.2.2. TTTR Mode File Format
MultiHarpdatafilesfromT2andT3Mode(*.ptu)createdbytheMultiHarpsoftwarearetaggedbinaryfiles
whichcontainboththesetupparametersandtheactualeventdata.Therecanbeonlyonemeasurementper
file.Thesetupdatainthefileheaderissimilartothatinstandardinteractivemodefiles.Inordertoidentifya
MultiHarpdatafileasafilecreatedbyandtobeusedbythenativeMultiHarpsoftware,aprogramreadingin
thesefilescanreadthetagassured content whichbeginswiththestring“MultiHarp“.However,apieceofsoft-
Page84