Skip to content

Template for making a Python Driver for chips, developped @ C2N

Notifications You must be signed in to change notification settings

arenaudineau/Template-PythonDriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template-PythonDriver

Template for making a Python Driver for chips, developped @ C2N

Installation

This library requires:

  • ⚠️ 32 bits version of Python
  • pyserial version 3.5 or any other compatible version
  • pyvisa version 1.12.0 or any other compatible version
  • pandas version 1.4.2 or any other compatible version
  • The associated NI-VISA drivers, see the official doc. (⚠️ 32 bits version required)

Global installation

⚠️ Replace each {template} by the correct driver name.

  1. Download and install the NI-VISA drivers
  2. B1530driver.py and B1530ErrorModule.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.
  3. Run the command pip install https://github.com/arenaudineau/B1530Lib/archive/refs/heads/main.zip to install B1530Lib.
  4. 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.

Extending the driver

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:

Global Architecture

Adding path to PYTHONPATH

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.

Wiki

Here is a complete wiki on how to use this library.

About

Template for making a Python Driver for chips, developped @ C2N

Resources

Stars

Watchers

Forks

Languages