Changeset 58 for 1dwg


Ignore:
Timestamp:
Sep 2, 2008 10:44:04 AM (12 years ago)
Author:
prjemian
Message:

test for existence of XMLutils XOP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 1dwg/trunk/IgorPro/cansasXML.ipf

    r57 r58  
    11#pragma rtGlobals=1             // Use modern global access method. 
    2 #pragma version=1.09 
     2#pragma version=1.10 
    33 
    44// file:        cansasXML.ipf 
    55// author:      Pete R. Jemian <jemian@anl.gov> 
    6 // date:        2008-06-19 
    76// SVN date:    $Date$ 
    87// SVN rev.:    $Revision$ 
     
    4241        STRING workingFolder = "root:Packages:CS_XMLreader" 
    4342        VARIABLE returnCode 
     43 
     44        // BEFORE we do anything else, check that XMLutils XOP is available. 
     45        #if( Exists("XmlOpenFile") == 0 ) 
     46    Abort  "XML function provided by XMLutils XOP is not available, get the XOP from : http://www.igorexchange.com/project/XMLutils (see http://www.smallangles.net/wgwiki/index.php/cansas1d_binding_IgorPro for details)" 
     47        #endif 
     48 
    4449 
    4550        // 
     
    303308        IF (cansasStrict)               // only get known canSAS data vectors 
    304309                prefix = SASdataPath + "//cs:" 
    305                 // load ALL nodes of each vector (if exists) at tthe same time 
     310                // load ALL nodes of each vector (if exists) at the same time 
    306311                CS_1i_getOneVector(fileID, prefix, "Q",                 "Qsas") 
    307312                CS_1i_getOneVector(fileID, prefix, "I",                 "Isas") 
Note: See TracChangeset for help on using the changeset viewer.