#pragma rtGlobals=1 // Use modern global access method.\r
#pragma IgorVersion = 4.0\r
-#pragma version = 0.3\r
+#pragma version = 0.4\r
\r
//\r
// ExportMFP1D.ipf - A procedure to export force curves from MFP1D to 'hooke'\r
//\r
\r
// History\r
+// 2009 07 24: v0.4\r
+// the wave note is now correctly and fully exported in Igor 4\r
// 2009 06 29: v0.3\r
// split functionality into ExportMFP1DFolder and ExportMFP1DWaves\r
// ExportMFP1DFolder: export individual Igor binary waves file from a folder\r
String sFileName2\r
String sLine\r
String sList\r
+ String sNote\r
String sWaveCombined\r
String sWaveDeflection\r
String sWaveLVDT\r
\r
// add the note to the file\r
// the notes are identical for LVDT and Deflection\r
- fprintf iRefNum, note(wLVDT)\r
+// the following only works in Igor 5 and up\r
+// fprintf iRefNum, note(wDeflection)\r
+// END: the following only works in Igor 5 and up\r
+ sNote=note(wLVDT)\r
+ // in order to get the correct number of lines in the note, we have to specify the EOF as \r\n\r
+ for(iCount=0; iCount<ItemsInList(sNote, "\r\n");iCount+=1)\r
+ // print every line to the output file\r
+ fprintf iRefNum, StringFromList(iCount, sNote, "\r\n")\r
+ // add a CR/LF for every but the last line\r
+ if(iCount<ItemsInList(sNote, "\r\n")-1)\r
+ fprintf iRefNum, "\r\n"\r
+ endif\r
+ endfor\r
\r
// separate the approach from the retraction\r
// by simply taking the first half of the points to be the approach\r