Initialization File

The spVIEW initialization file (spview_ini.m) resides in the spVIEW installation directory and defines the startup state of the application. This file can be edited by the user to modify the default application settings. Each user can have an individually customized initialization file by copying this file into the current working directory or into some other location that is above the spVIEW installation directory in the MATLAB search path. To edit the initialization file without needing to find the spVIEW installation directory, just type edit spview_ini at the MATLAB command prompt.

The manner in which spVIEW handles the IMAT unit system is determined by the IMATDATA.Units field in the initialization file.

IMATDATA.Units = getunits; maintains the current IMAT unit system. If the unit system has not been set, a dialog is presented from which to select the unit system.

IMATDATA.Units = ''; always presents the unit system selection dialog.

IMATDATA.Units = 'xx'; explicitly sets the IMAT unit system, where xx is a two- or three-character string containing the unit system name. See help on SETUNITS for more information on the predefined IMAT unit systems. If the third character is 'g', IMAT will treat acceleration quantities as g's and not engineering units.

The IMAT unit system affects all reading and writing operations to ADF and Universal files. On reading, data is converted into the selected unit system. On writing to an ADF, data is converted SI units as required by I-deas. On writing to a universal file, a Units Dataset (164) is written at the beginning of the file to indicate the unit system of the subsequent datasets. Note that changing the IMAT unit system does not automatically convert the units for imat_fn objects existing in the MATLAB workspace or associated with the spVIEW application. The IMAT unit system should be set before any reading or writing operations and should be maintained for consistency throughout a session.

The IMATDATA.Info.Path field in the initialization file defines the path to the default data file folder. If it is set equal to an empty string, the current working directory is used.