- Timestamp:
- Sep 10, 2010 5:50:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Common/NIST_XML_v40.ipf
r710 r732 565 565 end 566 566 567 // 568 // !!! nf.Sample_ID is not set correctly here, since it's not read in from the NIST 6-col data file 569 // and SASprocessnote does not get set either! 570 // 567 571 Function convertNISTtoNISTXML(fileStr) 568 572 String fileStr … … 639 643 640 644 endif 641 642 //Tidy up643 Variable i = 0644 do645 WAVE/Z wv= $(StringFromList(i,S_waveNames,";"))646 if( WaveExists(wv) == 0 )647 break648 endif649 KillWaves wv650 i += 1651 while (1) // exit is via break statement652 653 645 654 646 endif //6-col data … … 666 658 667 659 writeNISTXML(outfileName, nf) 660 661 //Tidy up AFTER we're all done, since STRUCT points to wave0,wave1, etc. 662 Variable i = 0 663 do 664 WAVE/Z wv= $(StringFromList(i,S_waveNames,";")) 665 if( WaveExists(wv) == 0 ) 666 break 667 endif 668 KillWaves wv 669 i += 1 670 while (1) // exit is via break statement 668 671 669 672 end … … 695 698 if (stringmatch(buffer,"*FIRST File LABEL:*") == 1) 696 699 NISTfile.title = TrimWS(StringFromList(1,buffer, ":")) 697 elseif(stringmatch(buffer,"*LABEL:*") == 1) 700 endif 701 if(stringmatch(buffer,"*LABEL:*") == 1) 698 702 NISTfile.title = TrimWS(StringFromList(1,buffer, ":")) 703 endif 704 if(stringmatch(buffer,"NSORT*") == 1) 705 NISTfile.title = buffer 699 706 endif 700 707
Note: See TracChangeset
for help on using the changeset viewer.