Compiled INFOS creates a limited MATLAB environment to run the DIFRATE software. All standard MATLAB commands (but not all libraries) are available at the provided command line, as are basic variable types (cells, structures, arrays, etc.). One may then run DIFRATE by typing commands at the command line (and using interactive features, such as detector_opt).
One may also create scripts in any text editor, and these may also be executed from the command line (save as *.m). New functions, however, cannot be created. One may also create scripts to print variables created by DIFRATE to a file (with the MATLAB ‘save’ function), or use the print_data function:
print_data(filename,data); %'filename' is a string giving the text file to print to. %'fit' is a variable containing the fit to be written out
Experimental data should be loaded into the DIFRATE software using the MATLAB ‘load’ command. For example, if data is stored in a tab-separated file, ‘R1data.txt’, then one can load that data into a variable as follows
data.R1=load(‘R1data.txt’);
Note that compiled DIFRATE should be regarded as a beta release, although feel free to contact me with problems
INFOS can be used simply by running DIFRATE.exe. Parallel processing may result in request for permission to accept incoming network connections (“ctfxlauncher”).
INFOS can be called using the run_DIFRATE.sh shell script
./run_DIFRATE.sh /path/to/Matlab_Runtime/v**
The path included above should direct to the Matlab_Runtime files, with the last to file folders being Matlab_Runtime/v**, where v** gives the version number installed. One may also add the appropriate folders to the LD_LIBRARY_PATH manually, or with a script at startup, and then execute INFOS directly.
In principle, one should just be able to run the DIFRATE application (DIFRATE.app). However, this seems to fail in some cases. Then, one should open the INFOS.app folder (right click, “Show Package Contents”), then navigate Contents/MacOS/ and run the ‘prelaunch’ executable. This should run DIFRATE as normal, although is inconvenient.
One may also use the run_DIFRATE.sh script from a terminal, as follows run_DIFRATE.sh
/path/to/Matlab_Runtime/v**
The path included above should direct to the Matlab_Runtime files, with the last two file folders being Matlab_Runtime/v**, where v** gives the version number installed. One may also add the appropriate folders to the DYLD_LIBRARY_PATH manually, or with a script at terminal startup, and then execute DIFRATE directly.
Parallel processing may result in request for permission to accept incoming network connections (“ctfxlauncher”). Also, I’m having problems opening a parallel pool on all cores of my laptop. I should have access to 8 cores, but am only getting 4. So, I hope for an update soon, but the current version should be quite usable.