MATE for Dummies. Scienta Omicron MATE Scripting System in Python
Project description
MATE for Dummies is a Python library for using scriptable MATE objects. The Scienta Omicron MATRIX Automated Task Environment (MATE) is using the MATRIX SPM Control System. MATE for Dummies is pure Python but it loads a dynamic link library RemoteAccess_API.dll, a C-language interface for remote controlling MATRIX.
MATE for Dummies consists of two modules, mate and objects. The expert module mate uses most of the C-language functions in the RemoteAccess_API. With this module you must use the MATE HELP System to provide the arguments for the remote_access function that is in the mate module. The dummy module objects will provide a fraction of the available MATE objects but enough to do most of the experiments.
Dependencies
MATE for Dummies requires the psutil (https://pypi.org/project/psutil/) and pefile (https://pypi.org/project/pefile/) libraries.
Installation
Using pip:
> pip install MATE-for-Dummies
Example usage
Dummy mode:
>>> import mate4dummies.objects as mo
Starting log on Thursday, 10 May 2018 16:46:40.
>>> mo.mate.connect()
Connecting to the MATRIX, response: RMT_SUCCESS.
Experiment parameter Name: STM_Basic.
Experiment parameter Result_File_Name: default_2018May10-164819_STM-STM_Basic.
Experiment parameter Result_File_Path: C:\Users\stephan\AppData\Roaming\Scienta Omicron\MATRIX\default\Results\10-May-2018.
>>> mo.xy_scanner.Angle()
10
>>> mo.xy_scanner.Angle(45)
45
>>> mo.gap_voltage_control.Voltage(0.5)
0.5
>>> mo.mate.disconnect()
Disconnecting from the MATRIX, response: RMT_SUCCESS.
>>>
There are three testing scripts available in the MATE for Dummies package. In the following example you can locate these files.
>>> import mate4dummies, os
>>> os.path.join(mate4dummies.__path__[0], 'testing')
'C:\\Users\\stephan\\Miniconda3\\lib\\site-packages\\mate4dummies\\testing'
>>>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file MATE_for_Dummies-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: MATE_for_Dummies-0.4.2-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 440afe1ed20cba4838c04567ff5e749304f9e2c101992ca44978b67b0b84c66d |
|
MD5 | 5b1fe1f16f03125dc4cdf9d0145f11bd |
|
BLAKE2b-256 | b35f8fffa084bd80f631d508f54179ac37f83d606c29aa22af80f063f3804ac3 |