Skip to content
Snippets Groups Projects
README.md 2.08 KiB
Newer Older
esarrey's avatar
esarrey committed
# MiniMOKE
Eliott Sarrey's avatar
Eliott Sarrey committed

esarrey's avatar
esarrey committed
UI interface for the miniMOKE experimental setup.

## Requirements

esarrey's avatar
esarrey committed
This project requires a conda or miniconda environment with python3.6 64bit or newer.
esarrey's avatar
esarrey committed
To create an environment, just run: 
```bash
conda create --name MOKE python=3.11 
```
And you can check the list of available environments using:
```bash
conda env list
```
esarrey's avatar
esarrey committed

esarrey's avatar
esarrey committed
Then, install the required modules:
esarrey's avatar
esarrey committed
```bash
esarrey's avatar
esarrey committed
conda install -c conda-forge pylablib
conda install -c conda-forge pythonnet
esarrey's avatar
esarrey committed
conda install pyinstaller
esarrey's avatar
esarrey committed
pip install pymeasure
pip install nidaqmx
esarrey's avatar
esarrey committed
pip install markdown
esarrey's avatar
esarrey committed
pip install qdarkstyle
pip install pyft232
esarrey's avatar
esarrey committed
```
esarrey's avatar
esarrey committed

## How to use

esarrey's avatar
esarrey committed
Please use the batch scripts in the `scripts` folder to run the program if you are unware of the correct environment to use.

## Code breakdown

The project structure is as follows:

- `minimoke/libs`: This directory contains library files, such as `MagnetPhysik.Usb.dll`, which are used by the project.

- `minimoke/.gitignore`: This file is used by Git to determine which files and directories to ignore in the project.

- `minimoke/configs`: This directory contains configuration files (INI files) for the stages, procedures, and DAC.

- `minimoke/scripts`: This directory contains build and debug scripts, as well as the PyInstaller JSON configuration file.

- `minimoke/doc`: This directory contains the user manual for the project.

- `minimoke/assets`: This directory contains image files and icons used by the project.

- `minimoke/__main__.py`: The main entry point of the project.

- `minimoke/src`: This directory contains source code files for the project. 

    - `minimoke/src/procedures`: This directory contains the source code for various experimental procedures including y-sweep, b-sweep, x-sweep, and xy-sweep.

    - `minimoke/src/ui`: This directory contains the source code for the User Interface (UI) including the main UI, user manual tab UI, live tab UI, and motors tab UI.

    - `minimoke/src/classes`: This directory contains the source code for various classes used in the project including the status bar class, DAC class, stage class, config handler class, and hall sensor class.