Escolar Documentos
Profissional Documentos
Cultura Documentos
Copyright LMS IMAGINE S.A. 1995-2010 AMESim is the registered trademark of LMS IMAGINE S.A. AMESet is the registered trademark of LMS IMAGINE S.A. AMERun is the registered trademark of LMS IMAGINE S.A. AMECustom is the registered trademark of LMS IMAGINE S.A. LMS Imagine.Lab is a registered trademark of LMS International N.V. LMS Virtual.Lab Motion is a registered trademark of LMS International N.V.
ADAMS is a registered United States trademark of MSC.Software Corporation. MATLAB and SIMULINK are registered trademarks of the Math Works, Inc. Modelica is a registered trademark of the Modelica Association. UNIX is a registered trademark in the United States and other countries exclusively licensed by X / Open Company Ltd. Python is a registered trademark of the Python Software Foundation. Windows is the registered trademark of the Microsoft Corporation. All other product names are trademarks or registered trademarks of their respective companies.
TABLE OF CONTENTS
1. What is AMELibChecker? ................................................................................................ 1 Inputs ................................................................................................................................ 1 Outputs ............................................................................................................................. 1 2. Graphical User Interface .................................................................................................. 1 3. Defining the source path list ........................................................................................... 2 4. Selecting the destination directory................................................................................. 3 5. Applying the check submodels....................................................................................... 5 Information tab / info.log file .............................................................................................. 8 Check Report section / check_report.log file ................................................................... 10 6. Updating AMESim models ............................................................................................. 10
November 2010
Table of Contents
1/1
Inputs
Inputs are the node directories where user submodels and supercomponents are stored.
Outputs
Outputs are node directories containing up-to-date submodels and supercomponents with their submodels.index and icon files. If no upgrade is applied, the submodel and supercomponent files that are copied to the destination directory keep their properties (access rights and dates). This is particularly true for submodel object files.
November 2010
Figure 1: AMELibChecker
Clicking on the Full Path List button opens a dialog box which looks like the AMESim/AMESet/AMECustom path list. This allows the user to add (or remove) the nodes where his submodels and supercomponents are stored. The only difference with the standard AMESim/AMESet/AMECustom path list is that the Update Category check box does not appear. Any change from this path list is applied to the standard AMESim/AMESet/AMECustom path list. When the OK button is clicked, the current path list is used to generate the source path list from which the user libraries to upgrade are looked for.
November 2010
AMELibChecker
2/10
The Cancel button closes AMELibChecker. Please not that if the AMESim/AMESet/AMECustom path list has been previously modified and validated, the Cancel button will not set back the original path list. The Next button opens the second page of the AMELibChecker wizard.
In the case where: several last subdirectories have the same name in the source path list or, a destination directory with a name that already exists is to be generated,
the suffix instance_i is appended to the destination directories. This guarantees that existing files are not overwritten since new empty destination directories are created before the Check Submodels starts.
This button opens a directory browser. The OK button must be clicked when the destination root directory is selected: the destination path list is then generated.
November 2010
AMELibChecker
4/10
Figure 4: Select a directory The destination path list table shows the directories that will be created during the Check Submodels for storing the up-to-date submodels and supercomponents.
The Cancel button closes AMELibChecker. Please not that if the AMESim/AMESet/AMECustom path list has been previously modified and validated, the Cancel button will not set back the original path list. The Back button moves back to the first page of the AMELibChecker wizard. The Next button opens the third page of the AMELibChecker wizard.
November 2010
Clicking on the start button starts the Check Submodels utility. When the check process is started every button is disabled except the Stop button. At the end of the Check Submodels, if 100% of the submodels and supercomponents have been upgraded, this button is disabled.
November 2010
AMELibChecker
6/10
Figure 6: Performing the check A dialog box summarizing the result of the process is displayed:
Figure 7: Summary We can get more details on the results by having a look at the Information, Errors and Check Report tabs. The three following files are also generated for saving these results: info.log, errors.log and check_report.log.
This button is only available when a Check Submodels is in progress. It must be used to stop the check.
November 2010
AMELibChecker
7/10
Please note that after a Check Submodels has been stopped, it can only be restarted from the beginning!
Figure 8: The Information tab Here we get the list of the up-to-date files that have been copied with their destination directory. Errors tab / errors.log file
November 2010
AMELibChecker
8/10
Figure 9: The Errors tab A list of all submodels and supercomponents which have not been upgraded is given. The reasons why they could not be updated can also be found and pieces of advice are given on how to upgrade them manually. When these problems are fixed, it is possible to restart the Check Submodels provided AMELibChecker has not been closed. In that case, only the submodels and supercomponents that could not be updated successfully will be dealt with and copied to their destination directory.
November 2010
AMELibChecker
9/10
Figure 10: The Check Report tab Here we can find details on what has been modified in the submodels and supercomponents that have been checked.
November 2010
AMELibChecker
10/10