The MATLAB scripts below are a subset of
SpinAPI examples that have been ported from C
to MATLAB.
Usage
Please verify that you have SpinAPI and MATLAB
installed on your computer. SpinAPI can be
found at
SpinAPI: SpinCore
API and Driver Suite.
The MATLAB examples can be
downloaded all at once by downloading the
compressed .7z file or individually via the
individual files link below.
Downloads
MATLAB Examples .zip file
(20231207)
Download Link
MATLAB Examples individual files
Link
These MATLAB scripts use the .m and .mat files
in the included MATLAB_SpinAPI folder that is
a directory above the example scripts. The
SpinAPI .dll and .h files are required to run
the scripts. The examples searches for these
files at the default path (
C:\SpinCore\SpinAPI).
If SpinAPI is installed on a different drive,
the SpinAPI_Drive variable will need to be
changed within the script.
Notes:
- If a debug log is created from MATLAB,
MATLAB must close before log.txt can be
accessed
- The workspace and command window are
cleared upon running the script