Changeset 12


Ignore:
Timestamp:
Mar 27, 2013 3:45:00 PM (9 years ago)
Author:
ilavsky
Message:

Modified to compile on computers even without xop and abort & produce message when xop is called with instructions.

Files:
11 edited

Legend:

Unmodified
Added
Removed
  • Igor Procedures/Boot Nika.ipf

    r6 r12  
    1010Function LoadNi12DSAS()
    1111        if (str2num(stringByKey("IGORVERS",IgorInfo(0)))>6.19)
    12 #if(exists("HDF5SaveData")==4)
    1312                Execute/P "INSERTINCLUDE \"NI1_Loader\""
    1413                Execute/P "COMPILEPROCEDURES "
     
    1918                BuildMenu "SAS 2D"
    2019                Execute/P "NI1_ReadIrenaGUIPackagePrefs()"
    21 #else
    22         DoAlert 0, "Hdf5 xop is not installed, please install manually or run install xop command from Universal Installer.pxp version 1.10 or higher."
    23 #endif
    2420        else
    2521                DoAlert 0, "Your version of Igor is lower than 6.20, these macros need version 6.20 or higher. Please, update..." 
  • User Procedures/Indra 2/IN2_USAXS.ipf

    r6 r12  
    11#pragma rtGlobals=1             // Use modern global access method.
    22#pragma IgorVersion=6.2 //requires Igor version 4 or higher
    3 #pragma version = 1.28
    4 
     3#pragma version = 1.29
     4
     5//1.29 modified not to fail to compile when XML xop is not present.
    56//1.28 release to update error calculation for I0 autoranging.
    67//1.27 release from 4/30/2012, updates for autoranging I0
     
    32293230
    32303231        // define the namespaces
     3232#if     Exists("XMLcreateFile")
    32313233        fileID = XMLcreateFile(xmlFile, "SASroot", "cansas1d/1.0", "")
    32323234        XMLsetAttr(fileID,              "/SASroot",                             "", "version", "1.0")
     
    32433245       
    32443246        //need to create here appropriate RunInfo we can use in the future, something like:  "APS_USAXS=32-ID; scan=S81; file=08_21.dat; dataType=slit-smeared; MSAXS=no"
    3245         string RunInfo = "APS_USAXS=32-ID;"
     3247        string RunInfo = "APS_USAXS=15-ID;"
    32463248        RunInfo +="scan="+StringByKey("SCAN_N", note(Qvec), "=")+";"
    32473249        RunInfo +="file="+StringByKey("DATAFILE", note(Qvec), "=")+";"
     
    33773379         XSLFileName = RemoveFromList(StringFromList(ItemsInList(xmlFile,":")-1, xmlFile  , ":"), xmlFile  ,":")
    33783380         XSLFileName +="example.xsl"
     3381
    33793382         variable refnum2
    33803383        Open/Z/R  refnum2 as XSLFileName
     
    33893392                close refnum2
    33903393        endif
     3394#else
     3395                Abort "XML xop not installed, this feature is not available. Use one of the installers and install the xop support before using this feature."
     3396#endif
    33913397END
    33923398
     
    39273933        VARIABLE i, pos
    39283934
     3935#if Exists("XMLaddNode")
    39293936        XMLaddNode(fileID, parent, "", node, "", 1)
    39303937        parent += "/"+node+"[" + num2str(index) + "]"
     
    39403947                ENDIF
    39413948        ENDFOR
     3949#else
     3950                Abort "XML xop not installed, this feature is not available. Use one of the installers and install the xop support before using this feature."
     3951#endif
    39423952END
    39433953
  • User Procedures/Indra 2/IN3_Calculations.ipf

    r6 r12  
    11#pragma rtGlobals=1             // Use modern global access method.
    2 #pragma version=1.04
    3 
     2#pragma version=1.05
     3
     4//1.05 FIxed bump to Compiler when no data selected in Data selection popup.
    45//1.04 2/2013, JIL: modified to enable calibration per weight
    56//1.03 2/2013 fixed Process next sample for changed control procedures.
     
    302303                endif
    303304                LastSample = DFloc
    304                 Wave OrigAR_encoder=$(DFloc+"AR_encoder")
     305                Wave/Z OrigAR_encoder=$(DFloc+"AR_encoder")
     306                if(!WaveExists(OrigAR_encoder))
     307                        return 0
     308                endif
    305309                Duplicate/O OrigAR_encoder, AR_encoder
    306310                Wave OrigPD_range=$(DFloc+"PD_range")
  • User Procedures/Indra 2/IN3_Rwave.ipf

    r6 r12  
    154154        setDataFolder root:Packages:Indra3
    155155
    156         Wave PD_Range                                                   //these waves should be here
     156        Wave/Z PD_Range                                                 //these waves should be here
     157        if(!WaveExists(PD_Range))
     158                abort
     159        endif
    157160        Wave USAXS_PD
    158161        Wave Monitor
  • User Procedures/Indra 2/Readme.txt

    r6 r12  
    1010______________________________________________________________________________________
    1111xxxxx
    12 Added calibration to weight, for now cannot calculat weight of sample in the beam,
     12Added calibration to weight, for now cannot calculate weight of sample in the beam,
     13Modified to compile on computers even without xop and abort & produce message when xop is called with instructions.
     14
    1315
    14161.77 11/5/2012
  • User Procedures/Irena/IR2_Reflectivity.ipf

    r10 r12  
    2121//1.11 added Motofit data types for convenience.
    2222//1.12 modified panel to be scrollable
     23//1.13 modifed to remove xop dependence. Now it will compile without xop but complain on run, if xop is not installed.
    2324
    2425Function IR2R_ReflectivitySimpleToolMain()
     
    10201021        Wave w, RR, qq, dq
    10211022        variable bkg
     1023
     1024#if     Exists("Abeles_imagALl")
    10221025       
    10231026        NVAR UseResolutionWave = root:Packages:Refl_SimpleTool:UseResolutionWave       
     
    10781081                fastop RR = (bkg) + RR
    10791082        endif
    1080        
     1083#else
     1084                Abort "Reflectivity (Abeles) xop not installed, this feature is not available. Use one of the installers and install the xop support before using this feature."
     1085#endif 
    10811086       
    10821087End
     
    10901095        Wave w, RR,qq
    10911096        variable resolution
     1097
     1098#if     Exists("Abeles_imagALl")
    10921099
    10931100        variable mode, bkg
     
    11641171        w[6] = bkg
    11651172        fastop RR = (bkg) + RR
    1166                
     1173#else
     1174                Abort "Reflectivity (Abeles) xop not installed, this feature is not available. Use one of the installers and install the xop support before using this feature."
     1175#endif         
    11671176
    11681177End
  • User Procedures/Irena/Modification history.txt

    r10 r12  
    55********************************************
    662.51 XXXX
     7Modified to compile on computers even without xop and abort & produce message when xop is called with instructions.
    78Guinier-Porod Fit - created first version of this tool.
    89Control procedures - modified to show only last folder but work transparently for the tools.
  • User Procedures/Nika/Modification history.txt

    r6 r12  
    55********************************************
    661.61 xxxxx
     7Modified to compile on computers even without xop and abort & produce message when xop is called with instructions.
    78Fixed Pilatus ESRF edf file format. Header was set to 1024 bytes, which is incorrect, it is n*512Bytes. Changed to look for separator and cleaned up the header to match Nika/Irena wave note styles(removed unneeded spaces).
    89Modified 15IDD pinSAXS, WAXS support to use new Nexus data, fixed few bugs in calculations.
  • User Procedures/Nika/NI1_15IDDsupport.ipf

    r6 r12  
    10821082        else            //emty does not match
    10831083                print "Empty name DOES NOT match name in NX file OR user requested recalculating the transmission; new values calculated from Sample, Empty, and Dark data..."
    1084                 variable SampleI0=str2num(NI1_15IDDFindWaveNoteValue("EPICS_PV_metadata:transI0_Spl"))
    1085                 variable SamplePD=str2num(NI1_15IDDFindWaveNoteValue("EPICS_PV_metadata:transNosePD_Value_Spl"))
    1086                 variable EmptyI0=str2num(NI1_15IDDFindEmptyNoteValue("EPICS_PV_metadata:transI0_Empty"))
    1087                 variable EmptyPD=str2num(NI1_15IDDFindEmptyNoteValue("EPICS_PV_metadata:transNosePD_Value_Empty"))
    1088                 variable DarkI0=str2num(NI1_15IDDFindDarkNoteValue("EPICS_PV_metadata:transI0_Dark"))
    1089                 variable DarkPD=str2num(NI1_15IDDFindDarkNoteValue("EPICS_PV_metadata:transNosePD_Value_Dark"))
     1084                variable SampleI0
     1085                variable SamplePD
     1086                variable EmptyI0
     1087                variable EmptyPD
     1088                variable DarkI0
     1089                variable DarkPD
     1090                if(str2num(NI1_15IDDFindWaveNoteValue("EPICS_PV_metadata:transI0_Spl"))<1)
     1091                         SampleI0=str2num(NI1_15IDDFindWaveNoteValue("EPICS_PV_metadata:transI0_Spl"))
     1092                         SamplePD=str2num(NI1_15IDDFindWaveNoteValue("EPICS_PV_metadata:transNosePD_Value_Spl"))
     1093                         EmptyI0=str2num(NI1_15IDDFindEmptyNoteValue("EPICS_PV_metadata:transI0_Empty"))
     1094                         EmptyPD=str2num(NI1_15IDDFindEmptyNoteValue("EPICS_PV_metadata:transNosePD_Value_Empty"))
     1095                         DarkI0=str2num(NI1_15IDDFindDarkNoteValue("EPICS_PV_metadata:transI0_Dark"))
     1096                         DarkPD=str2num(NI1_15IDDFindDarkNoteValue("EPICS_PV_metadata:transNosePD_Value_Dark"))
     1097                else
     1098                         SampleI0=str2num(NI1_15IDDFindWaveNoteValue("EPICS_PV_metadata:transBPM_B_Sample"))
     1099                         SampleI0+=str2num(NI1_15IDDFindWaveNoteValue("EPICS_PV_metadata:transBPM_L_Sample"))
     1100                         SampleI0+=str2num(NI1_15IDDFindWaveNoteValue("EPICS_PV_metadata:transBPM_T_Sample"))
     1101                         SampleI0+=str2num(NI1_15IDDFindWaveNoteValue("EPICS_PV_metadata:transBPM_R_Sample"))
     1102
     1103                         SamplePD=str2num(NI1_15IDDFindWaveNoteValue("EPICS_PV_metadata:transPD_Sample"))
     1104
     1105                         EmptyI0=str2num(NI1_15IDDFindEmptyNoteValue("EPICS_PV_metadata:transBPM_B_Sample"))
     1106                         EmptyI0+=str2num(NI1_15IDDFindEmptyNoteValue("EPICS_PV_metadata:transBPM_L_Sample"))
     1107                         EmptyI0+=str2num(NI1_15IDDFindEmptyNoteValue("EPICS_PV_metadata:transBPM_T_Sample"))
     1108                         EmptyI0+=str2num(NI1_15IDDFindEmptyNoteValue("EPICS_PV_metadata:transBPM_R_Sample"))
     1109
     1110                         EmptyPD=str2num(NI1_15IDDFindEmptyNoteValue("EPICS_PV_metadata:transPD_Sample"))
     1111                         DarkI0=str2num(NI1_15IDDFindDarkNoteValue("EPICS_PV_metadata:transBPM_B_Sample"))
     1112                         DarkI0+=str2num(NI1_15IDDFindDarkNoteValue("EPICS_PV_metadata:transBPM_L_Sample"))
     1113                         DarkI0+=str2num(NI1_15IDDFindDarkNoteValue("EPICS_PV_metadata:transBPM_T_Sample"))
     1114                         DarkI0+=str2num(NI1_15IDDFindDarkNoteValue("EPICS_PV_metadata:transBPM_R_Sample"))
     1115                         DarkPD=str2num(NI1_15IDDFindDarkNoteValue("EPICS_PV_metadata:transPD_Sample"))
     1116                endif
    10901117                transmissionUser = ((SamplePD - DarkPD)/(SampleI0-DarkI0))/((EmptyPD-DarkPD)/(EmptyI0-DarkI0))
    10911118                print "The NX file lists transmission = "+num2str(ExistingTransmissionInFile)
     
    12521279        endif
    12531280        string OldNOte=note(w2D)
    1254         variable I000 = NumberByKey(NI1_15IDDFindKeyStr("EPICS_PV_metadata:I0_Spl=", OldNote), OldNote  , "=" , ";")
     1281        variable I000 = NumberByKey(NI1_15IDDFindKeyStr("EPICS_PV_metadata:I0_Sample=", OldNote), OldNote  , "=" , ";")
     1282        if(numtype(I000)!=0 || I000<1)
     1283                I000 = NumberByKey(NI1_15IDDFindKeyStr("EPICS_PV_metadata:BPM_B_Sample=", OldNote), OldNote  , "=" , ";")
     1284                I000 += NumberByKey(NI1_15IDDFindKeyStr("EPICS_PV_metadata:BPM_T_Sample=", OldNote), OldNote  , "=" , ";")
     1285                I000 += NumberByKey(NI1_15IDDFindKeyStr("EPICS_PV_metadata:BPM_L_Sample=", OldNote), OldNote  , "=" , ";")
     1286                I000 += NumberByKey(NI1_15IDDFindKeyStr("EPICS_PV_metadata:BPM_R_Sample=", OldNote), OldNote  , "=" , ";")
     1287        endif
    12551288//      variable I0gain = NumberByKey(NI1_15IDDFindKeyStr("I0_gain=", OldNote), OldNote  , "=" , ";")
    12561289//      I000 = I000 * I0gain
     
    12981331        string OldNOte=note(w2D)
    12991332        variable I000 = NumberByKey(NI1_15IDDFindKeyStr("EPICS_PV_metadata:I0_Empty=", OldNote), OldNote  , "=" , ";")
     1333        if(numtype(I000)!=0 || I000<1)
     1334                I000 = NumberByKey(NI1_15IDDFindKeyStr("EPICS_PV_metadata:BPM_B_Sample=", OldNote), OldNote  , "=" , ";")
     1335                I000 += NumberByKey(NI1_15IDDFindKeyStr("EPICS_PV_metadata:BPM_T_Sample=", OldNote), OldNote  , "=" , ";")
     1336                I000 += NumberByKey(NI1_15IDDFindKeyStr("EPICS_PV_metadata:BPM_L_Sample=", OldNote), OldNote  , "=" , ";")
     1337                I000 += NumberByKey(NI1_15IDDFindKeyStr("EPICS_PV_metadata:BPM_R_Sample=", OldNote), OldNote  , "=" , ";")
     1338        endif
    13001339        if(numtype(I000)!=0)
    13011340                Print "I0 value not found in the wave note of the sample file, setting to 1"
  • User Procedures/Nika/NI1_FileLoaders.ipf

    r6 r12  
    11#pragma rtGlobals=1             // Use modern global access method.
    2 #pragma version=2.23
     2#pragma version=2.24
    33
    44//*************************************************************************\
     
    88//*************************************************************************/
    99
     10//2.24 modified to compile even when xml xop is not available.
    1011//2.23 fixed bug on ESRF edf data format for Pilatus, where I assume 1024 bytes header, but it is actually n*512bytes with separator. Modified code to handle those.
    1112//2.22 fixes bug for Pilatus 300K and adds Pilatus 6M (untested)
     
    124125
    125126        elseif(cmpstr(FileType,"TPA/XML")==0)
     127#if     Exists("XMLopenfile")
    126128                FileNameToLoad= FileName
    127129                if(cmpstr(FileName[strlen(FileName)-4,inf],".xml")!=0)
     
    162164                NewNote = ReplaceString("2%", NewNote, " ")
    163165                NI2_CreateWvNoteNbk(NewNote)
     166#else
     167        DoAlert 0, "XML xop is not installed, this feature is not available. Please install xops using latest Universal Installer.pxp or Java installer or install manually."
     168#endif
    164169        elseif(cmpstr(FileType,".hdf")==0)
    165170#if(exists("HDF5OpenFile")==4)
  • User Procedures/Nika/NI1_HDF5Browser.ipf

    r6 r12  
    11#pragma rtGlobals=1             // Use modern global access method.
    2 #pragma version = 1.00
     2#pragma version = 1.01
    33
    44#include <WaveSelectorWidget>
     
    66#pragma moduleName=NikaHDF5Browser
    77
     8//1.01 modified to compile when hdf5 xop is not available.
    89// 1.0 initial release. Not working yet, but need to go ahead with release.
    910//This is modified version of HDF5 Browser.ipf version 1.03 modified for use with Nika package by jan Ilavsky, January 2011
     
    2930        endif
    3031        variable locFileID
    31        
     32
     33#if Exists("HDF5OpenFile")     
    3234        HDF5OpenFile/R/P=$(PathName) locFileID as fileName
    3335        //Need to create temp folder to handle the whole group of stuff here...
     
    5456       
    5557        return "LoadedWave"
     58       
     59#else
     60        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     61#endif
    5662end
    5763
     
    221227        String indent = ""                      // Used only for mode 0.
    222228        Variable i, j
     229
     230#if Exists("HDF5ListGroup")     
    223231       
    224232        // This gives full hierarchy with full paths
     
    243251       
    244252        return result
     253#else
     254        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     255#endif
    245256End
    246257
     
    413424        endif
    414425
     426#if Exists("HDF5LoadData")     
    415427        strswitch(di.datatype_class_str)
    416428                case "H5T_INTEGER":
     
    500512       
    501513        return value
     514#else
     515        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     516#endif
    502517End
    503518
     
    505520        STRUCT NI2HDF5BrowserData &bd
    506521
     522#if Exists("HDF5ListGroup")     
    507523        HDF5ListGroup /TYPE=2 bd.fileID, bd.groupPath
    508524        Variable numItemsInList = ItemsInList(S_HDF5ListGroup)
     
    545561                endfor
    546562        endif
     563#else
     564        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     565#endif
    547566End
    548567               
     
    550569        STRUCT NI2HDF5BrowserData &bd
    551570
     571#if Exists("HDF5ListAttributes")       
    552572        Variable numAttributes = 0
    553573        String groupPath = bd.groupPath
     
    595615                endfor
    596616        endif
     617#else
     618        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     619#endif
    597620End
    598621               
     
    600623        STRUCT NI2HDF5BrowserData &bd
    601624
     625#if Exists("HDF5ListAttributes")       
    602626        Variable numAttributes = 0
    603627        String datasetPath = NI2_SelectedDatasetPath(bd)
     
    645669                endfor
    646670        endif
     671#else
     672        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     673#endif
    647674End
    648675       
     
    801828        STRUCT NI2HDF5BrowserData &bd
    802829       
     830#if Exists("HDF5OpenFile")     
    803831        Variable hideMembers
    804832        String memberList
     
    840868        sprintf cmd, "PopupMenu Members, win=%s, value=\"%s\"", bd.browserName, memberList
    841869        Execute cmd
     870#else
     871        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     872#endif
    842873End
    843874
     
    10011032        String ctrlName
    10021033       
     1034#if Exists("HDF5OpenFile")     
    10031035        String browserName = NI2_HDF5GetTopBrowserName()
    10041036
     
    10121044                UpdateAfterFileCreateOrOpen(1, browserName, fileID, S_path, S_fileName)
    10131045        endif
     1046#else
     1047        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     1048#endif
    10141049End
    10151050
     
    10171052        String ctrlName
    10181053       
     1054#if Exists("HDF5OpenFile")     
    10191055        String browserName = NI2_HDF5GetTopBrowserName()
    10201056       
     
    10321068                UpdateAfterFileCreateOrOpen(0, browserName, locFileID, S_path, S_fileName)
    10331069        endif
     1070#else
     1071        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     1072#endif
    10341073End
    10351074
     
    10381077        STRUCT NI2HDF5BrowserData &bd
    10391078
     1079#if Exists("HDF5OpenFile")     
    10401080        if (bd.fileID == 0)
    10411081                return 0                                // File is closed but not unexpectedly.
     
    10481088       
    10491089        return 0
     1090#else
     1091        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     1092#endif
    10501093End
    10511094
     
    10691112        String ctrlName
    10701113       
     1114#if Exists("HDF5OpenFile")     
    10711115        String browserName = NI2_HDF5GetTopBrowserName()
    10721116
     
    10771121        CloseSavePanels()
    10781122        FileWasClosed(bd)
     1123#else
     1124        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     1125#endif
    10791126End
    10801127
     
    10821129        String ctrlName
    10831130
     1131#if Exists("HDF5OpenFile")     
    10841132        String browserName
    10851133        STRUCT NI2HDF5BrowserData bd
     
    11521200                endif
    11531201        endif
     1202#else
     1203        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     1204#endif
    11541205End
    11551206
     
    11571208        String ctrlName
    11581209
     1210#if Exists("HDF5OpenFile")     
    11591211        String browserName = NI2_HDF5GetTopBrowserName()
    11601212
     
    11961248                endif
    11971249        endif
     1250#else
     1251        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     1252#endif
    11981253End
    11991254
     
    12101265        String infoStr
    12111266
     1267#if Exists("HDF5OpenFile")     
    12121268        String browserName= StringByKey("WINDOW",infoStr)
    12131269        String event= StringByKey("EVENT",infoStr)
     
    12511307       
    12521308        return 0
     1309#else
     1310        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     1311#endif
    12531312End
    12541313
     
    12571316        String datasetName
    12581317
     1318#if Exists("HDF5OpenFile")     
    12591319        String info
    12601320
     
    12741334        SetButtonStates(bd)
    12751335        FillDatasetAttributesList(bd)
     1336#else
     1337        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     1338#endif
    12761339End
    12771340
     
    13431406        STRUCT NI2HDF5BrowserData &bd
    13441407
     1408#if Exists("HDF5OpenFile")     
    13451409        String datasetPath = NI2_SelectedDatasetPath(bd)
    13461410        if (strlen(datasetPath) == 0)
     
    13561420                        break   
    13571421        endswitch
     1422#else
     1423        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     1424#endif
    13581425End
    13591426
     
    19482015        STRUCT NI2HDF5BrowserData &bd
    19492016       
     2017#if Exists("HDF5OpenFile")     
    19502018        String path = NI2_SelectedGroupPath(bd)
    19512019        if (strlen(path) == 0)
     
    19632031        Notebook HDF5DumpNotebook text=S_HDF5Dump
    19642032        Notebook HDF5DumpNotebook selection={startOfFile, startOfFile}, findText={"",1}
     2033#else
     2034        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     2035#endif
    19652036End
    19662037
     
    19682039        STRUCT NI2HDF5BrowserData &bd
    19692040       
     2041#if Exists("HDF5OpenFile")     
    19702042        String datasetPath = NI2_SelectedDatasetPath(bd)
    19712043        if (strlen(datasetPath) == 0)
     
    19852057        Notebook HDF5DumpNotebook text=S_HDF5Dump
    19862058        Notebook HDF5DumpNotebook selection={startOfFile, startOfFile}, findText={"",1}
     2059#else
     2060        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     2061#endif
    19872062End
    19882063
     
    19912066        Variable isGroupAttribute
    19922067       
     2068#if Exists("HDF5OpenFile")     
    19932069        String path = NI2_SelectedAttributePath(bd, isGroupAttribute)
    19942070        if (strlen(path) == 0)
     
    20042080        Notebook HDF5DumpNotebook text=S_HDF5Dump
    20052081        Notebook HDF5DumpNotebook selection={startOfFile, startOfFile}, findText={"",1}
     2082#else
     2083        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     2084#endif
    20062085End
    20072086
     
    24282507        String &errorMessage                            // Output: Error message or ""
    24292508       
     2509#if Exists("HDF5OpenFile")     
    24302510        Variable err = 0
    24312511        errorMessage = ""
     
    25652645        SetDataFolder savedDataFolder
    25662646        return err
     2647#else
     2648        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     2649#endif
    25672650End
    25682651
     
    31583241        String name
    31593242
     3243#if Exists("HDF5OpenFile")     
    31603244        STRUCT NI2_HDF5DataInfo di
    31613245        NI2_InitHDF5DataInfo(di)                        // Set input fields.
     
    31673251        Variable rank = di.ndims
    31683252        return rank
     3253#else
     3254        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     3255#endif
    31693256End
    31703257
     
    31773264        String attributeName
    31783265
     3266#if Exists("HDF5OpenFile")     
    31793267        STRUCT NI2_HDF5DataInfo di
    31803268        NI2_InitHDF5DataInfo(di)                        // Set input fields.
     
    31863274        Variable rank = di.ndims
    31873275        return rank
     3276#else
     3277        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     3278#endif
    31883279End
    31893280
     
    32863377        String ctrlName
    32873378       
     3379#if Exists("HDF5OpenFile")     
    32883380        String panelName = WinName(0, 64)
    32893381        String message
     
    33833475                        break
    33843476        endswitch
     3477#else
     3478        Abort "Hdf5 xop is not found. Reinstall xops using one of the Installers or link the hdf5.xop from Igor distribution to your Igor extensions folder"
     3479#endif
    33853480End
    33863481
Note: See TracChangeset for help on using the changeset viewer.