EosFit7c has several commands to access the operating system and also includes a "macro" facility. You can use it to 'record' the instructions you give to the program, and then you can run it again to repeat the same calculations. You can also edit the macro file, because it is just a text file. This can be really useful when you have several datasets that you want to fit in the same way; just record your work the first time, and run the edited macro again to fit subsequent datasets.
These command are always accessible, even from the sub-programs like INPUT
List of the System and macro commands.
Time |
Includes the data and time in the command prompt. This is a toggle: use it a second time to remove the date and time from the prompt. |
Record |
Record commands in to a macro file, so that the sequence of commands can be repeated automatically with the macro command. Terminate recording by typing END |
Macro |
Load and run a set of commands from a macro file |
End |
Only active when RECORD is being used; stops recording of commands to macro file. |
Sys |
Switch to operating system. After typing SYS, all subsequent commands will be sent directly to the operating system. IMPORTANT: Commands typed after SYS will not be logged to the log file. |
Prog |
Only active after SYS has been typed. Exits from system, back to EosFit-7c program . |
Dir |
List files in current working directory (works just like dir in MS-DOS). |
CD |
Change working directory (works just like cd in MS-DOS). |
Here is an example of how to use the macro facilities:
|
Start the macro recording |
|
You can start the macro recording anytime, not just at the start of the program. It also works when a log file is also being recorded! Type record to start the macro recording, and input a filename for the macro file, in to which the commands will be written. The file name for the macro file can be provided with or without extension. If no extension is provided the program will create a file with the default extension for macro files (*.mcr see file types ). From now on, everything that you input in to the program is copied to the macro file; just carry on as normal. Note: (1) If you directly type file names instead of loading them with the file browser when you will run the macro file it will be able to repeat the whole procedure without asking for any user input; (2) Whereas if you load files using the browser, when you run the macro the program will prompt you with the file browser and allow you to chose the files (input and output) every time you run the macro. |
|
Finish the macro recording |
|
In this example a least-squares fit of the data has been done. Then the recording of the macro file was stopped by the end command. The program confirms that the recording has stopped with the message '***** Macro recording stopped' |
|
The macro file |
|
Here is the macro file. It contains just the input to the EosFit7c program. In this case, you can see the fit command, followed by 'P' to initiate the input of EoS parameters, and the input to set up a Birch-Murnaghan 3rd-order EoS. All of the 'Y' provide the answers to the questions at the start of the fitting. And the last lines show that a list of the data was output, and end terminated the recording. This is just a text file, so you can edit it if you want to. This can be useful, for example to load a series of files and perform the same sequence of refinements, and then to calculate the eos from each refinement. You can also add comment lines into the macro file, by prefacing the comment with **, and placing it where the program expects a command to be supplied. As an example, you could place the line **This is an example for fitting quartz as the first line in this example file. See the file quartz_fit.mcr for examples. |
|
Running a macro |
|
Type macro to load the macro file. The file name for the macro file can be provided with or without extension. If no extension is provided the program will open a filmace with the default extension for macro files (*.mcr see file types ). As soon as the macro file has been loaded, the program executes all of the commands and input from the file. In this example, you can see the fit being started immediately after the macro command. All of the input from the file, and all of the output from the program appears on the screen. It also appears in the log file if that is open. When the macro is finished, you will see the message 'Macro completed'. You can continue to use the program in the normal way. |