Template for making a Python Driver for chips, developped @ C2N
This library requires:
⚠️ 32 bits version of Pythonpyserial
version 3.5 or any other compatible versionpyvisa
version 1.12.0 or any other compatible versionpandas
version 1.4.2 or any other compatible version- The associated NI-VISA drivers, see the official doc. (
⚠️ 32 bits version required)
⚠️ Replace each {template} by the correct driver name.
- Download and install the NI-VISA drivers
B1530driver.py
andB1530ErrorModule.py
are licensed and cannot be shared on GitHub, they are therefore missing on this repo.
You must add their path to the environment variable PYTHONPATH. See the end of this README for instructions.- Run the command
pip install https://github.com/arenaudineau/B1530Lib/archive/refs/heads/main.zip
to installB1530Lib
. - Run the command
pip install https://github.com/arenaudineau/{template}/archive/refs/heads/main.zip
.
You can now use {template}
as a regular library, by using import {template}
in any directory on the computer.
You need to create a fork of this repo, git clone
your fork onto your local computer and run pip install -e .
in the root of the downloaded folder.
You can know use {template}
in any directory of the computer and any changes in the sources will be taken into account.
The global architecture of the drivers is the following:
Win + R
-> Write "SystemPropertiesAdvanced", Enter => Environment Variables... => User Variables for XXX ;
If PYTHONPATH
exists, edit it and append the path to B1530driver files ;
Otherwise, create it.
Here is a complete wiki on how to use this library.