Global IXTpath objects
The global path object is in fact an allocatable array of [IXTpath] objects. This object is stored in the memory of the fortran DLL/mex file and copies of it are passed back to the matlab workspace and stored persistently in a matlab file (IXF_global_props.m). All operations on the global object are performed by functions and subroutines in fortran. There are functions in matlab used to create and edit the global path function.
Different paths can be set up and edited using the following commands, NB. no checks are made on the directories on creation of the searchpath and it is possible to add the same directory more than once. However if you use the [rmgpath] command all matching directory names are removed .
- [mkgpath]
- [addbeggpath]
- [addendgpath]
- [rmgpath]
- [delgpath]
Once created the searchpath names can then be referred to in the [IXTdata_source] for the reading and writing of files in fortran. For example if we want to add a raw file to the [IXTdata_source] object with its filepath we use the [addrawfile] command, we delimit our searchpath from the filename with ':::'
>> mkgpath('my_raw_files','c:\rawfiles\','d:\scratch') % this command creates the path entry 'my_raw_files' >> addrawfile(dso,'my_raw_files:::MAP12345.RAW')
If a command to access the raw file fails then you might add some more directories to the searchpath
>> addendgpath('my_raw_files','c:\tmp')
Other commands can be used to display the global path object or copy it into an object directly accessible in the matlab workspace
- [showpath]
- [getgpath]
>> showpath my_raw_files::: c:\rawfiles\ d:\scratch c:\tmp >>