Labcontrol aims at controlling typical lab devices such as functiongenerators, power supplies and oscilloscopes by means of the VISA standard and python. VISA is the standard for configuring, programming, and troubleshooting instrumentation systems. It's owned and maintained by National Instrument. See: VISA Product Page
Using Labcontrol relies on third party software, some required other optional.
Labcontrol requires:
- VISA driver software from National Instruments.
- A recent Python interpreter.
- Visual Studio Code with
- 'Microsoft Python' extension for Visual Studio Code
- A clone of this repo.
Optional, but recommended software:
- git-scm, if you like command line managing of git based repos.
- 'Python Auto Venv' extension for Visual Studio Code
- Install git-scm
- Create a folder (no spaces in name) for cloning this repo into.
- Navigate to newly created folder and clone the repo by executing: git clone https://github.com/Lectoraat-DB-S/labcontrol.git
- Download and install VISA driver software from National Instruments.
- Download latest stable version of Python.
- Install Python. Tap de checkbox for 'add to Path' and installation of 'py' with administrive rights.
- Download and install Visual Studio Code.
- Start Visual Studio Code
- Install the 'Microsoft Python' extension for Visual Studio Code. See: https://marketplace.visualstudio.com/items?itemName=ms-python.python for instructions.
- Install the 'Python Auto Venv' extension for Visual Studio Code. Add the folder of your virtual environment in the VSC settings.
- In VSC: open the 'labcontrol-python' folder of this labcontrol repository
- Press Ctrl + Shift + P and type 'Python: create environment'
- Select the latest python 'venv' environment.
- Select 'requirements.txt' to install required dependencies.
- After VCS finished creation of the virtual environment, labcontrol is ready to use!
- Open the C:\github\labcontrol\src\labcontrol-python folder in Visual Studio Code.
- Select the proper virtual environment through pressing the Pyhton-icon on the left in de VSCode main screen.
- Open one of the measurement python files in the labcontrol-python folder.
#Documentation