Menu

Chapter 10: Installing and Using Libraries

This example takes the HTTPClient library as an example to demonstrate how to install, uninstall, export, and use the installed library in MetaFacture

When you need to operate a third-party library in MetaFacture , you can refer to this example.

 


Section 1: Installing the Library

1.xxxx.library ) you want to install to your local computer

2.In MetaFacture , click [Tools] - [Library Storage ... ] in the menu bar.

3.Click [Install], select the downloaded library file, and click [Open]

 

4.Installation complete, close the dialog box

 


Section 2: Using the library in your project

1.Create a new standard project

2.In the device window, double-click [Library Manager]

3.Click [Add Library], enter the name of the library you want to add, select the library you want to add, and click [OK]

 

4.After adding the library, check the [Message] window for errors. If the following errors are found, install the missing dependent libraries.

5.[Message] The window displays "0 errors", and you can directly define and use the function block in the program.

 

6.you do not find the library you want in the filter results in step 3

  • Please check whether the search library name you entered is correct.
  • Please make sure that the library has been installed. If not, please install the library first. If you are not sure whether it has been installed, you can click [Find] in the [Library Storage] dialog box to see if the library can be found. If not, it means that it has not been installed.

 


Section 3: Uninstalling the library

1.In MetaFacture , click [Tools] - [Library Storage ... ] in the menu bar to open the Library Storage

If you cannot find the library you want to uninstall, you can click the [Find] button on the [Library Storage] page, enter the name of the library you want to uninstall, select the library you want to uninstall in the filter results, and click [Open].

 

2.Select the library you want to uninstall and click [Uninstall].

3.Close the dialog box when the uninstallation is complete

 

 


Section 4: Exporting the Library

1.In MetaFacture , click [Tools] - [Library Storage ... ] in the menu bar.

If you cannot find the library you want to export, you can click the [Find] button on the library storage page, enter the name of the library to be exported, select the library to be exported in the filter results, and click [Open].

 

2.Select the library you want to export and click [Export].

 

3.Select a folder to save, enter the [File Name], and click [Save]

 

4.Close the dialog box and go to the specified save folder to view the exported library file.

 

 

Last modified: 2024-12-16