Contents - Index


Library Files

 

EES internal function, procedures and modules / subprograms can be saved in a Library file.  A Library file has a .LIB file name extension.  When EES starts, it will automatically load all of the functions and procedures in the library files that are found in the EES \USERLIB subdirectory  (\USERLIB64 for the 64-bit license) and nested directories unless directed otherwise by the Library Manager.  Library files can be loaded manually from a selected directory using the Load Library command in the File Menu.  Library files can also be loaded automatically using the $INCLUDE directive.

 

Library files will not appear in the Equations window.  They are used just like EES built-in functions.  Help information describing the use of the functions and/or procedures in the Library file can be obtained in an identical manner to built-in functions with the Function Info command in the Options menu.  When the user clicks the INFO button, information describing the use of the routine is displayed.  

 

Optional help information can be placed anywhere in the .LIB file as a comment between braces { }.  The comment must begin with $ followed by the function or procedure name.  The text on following lines, up to the closing comment brace is assumed to be the help information. Only the first comment with help information will be used.  However, this help information can be as long as needed.  Alternatively a Help file can be provided for the library file.

 

Use the Save As command to save the Library file.  Be sure to use the Check/Format or Solve command before saving the file to ensure that it does not have any syntax errors.  Remember, the library file will be automatically loaded by EES at startup if it is placed in the working directory.  

 

Note that EES can also access external functions and external procedures written as a dynamic link library in a compiled language.