Thanks stagsden,
Things are coming into focus now-- I can clearly see the data you have to start with in DIAdem and the exported csv file format you want to end up with. There are 3 elements in the desired CSV header you sent that I can read from the TDM file:
#Date,,02/07/2008#Time,,16:37:42#NumberOfDatas,,10000,,,,
But the remainder of the desired CSV header items do not seem to be anywhere in the TDM file. Do you want to use the same hard-coded values that you sent me for all exported CSV files? Will the TDM file have this information in the future? If so, where will the information reside-- File properties, Group properties, Channel properties, or in some external ASCII file?
#PHOTRON MCDL DATA,,#SheetType,,A#CameraType,,FASTCAM-APX RS 250K#CameraID,,5#FrameRate(fps),,1000#SaveStep,,1#ShutterSpeed(sec),,1/1000000#ImageWidth,,512#ImageHeight,,592#TriggerMode,,End#NumberOfFrames,,500#FrameRange,,0 to 500#UseZeroFrame,,0#SamplingRate(sps),,20000#Sloap,,,1,1,1,1#Intercept,,,0,0,0,0
Also, the CSV file you sent seems to assume there are 19 data points per frame-- will this always be the case, or will this information also be in the TDM file? This information is required to correctly create all 3 extra columns in the CSV file you sent me.