Giter Site home page Giter Site logo

jonnydoin / python-bkprecision Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13.41 MB

B&K Precision Instruments remote control in python.

License: BSD 2-Clause "Simplified" License

Python 100.00%
bk-precision instrument-control instrumentation python scpi serialport cistek gridvortex bkprecision xln3640 xln6024 scpi-instruments scpi-lab-instruments

python-bkprecision's Introduction

CISTEK / B&K Precision Python Remote Control

This repository contains python example scripts for remote programming of B&K Precision instruments.

It is developed by GridVortex Systems for CISTEK Equipamentos.

The repo has code examples for several instrument families, and general information and documentation for each family.

Objectives

The main purpose of this project is to provide simple examples to get users started with python and SCPI remote commands for test and measurement automation with B&K Precision instruments. 

Also shown are techniques to obtain realtime plotting of remote measurement from BK Instruments, to achieve better measurement automation results, and integration of multiple instruments in a simple python programming environment.

The techniques exemplified in the scripts are not exclusive to BK instruments, and can be generally applied to many other instruments, but specific sequences and commands are specific to each family or model. All scripts here are tested in real B&K Precision instruments.


Always read the manufacturers programming manual for the set of SCPI and proprietary commands supported by the instrument.

Documentation

XLN Power Supply Manual: Series Manual
XLN Power Supply Data Sheet: Series Data Sheet
Serial-to-USB Bridge: CP1202
BK 8600 Electronic Load Programming Manual: Programming Manual


CODE

The code examples are in the XLN examples folder. Please read the README for details on the code examples.

  • xln_id.py — retrieves ID info of the connected XLN power supply
  • xln_clr_pgm.py — clears all internal stored programs
  • xln_gen_pgm.py — generates a staircase waveform in PROG1
  • xln_gen_pgm_sine.py — generates a sinewave burst waveform in PROG1
  • xln_run_pgm.py — executes the program stored at PROG1
  • xln_wave.py — generate a staircase waveform and display realtime voltage and current
  • list_serial_ports.py – lists all USB serial ports (USB CDC) in the system. Use to find your serial port. The XLN series has a Silicon Labs CP1202 Serial to USB bridge.

LICENSE

All example codes here are developed by Gridvortex and published as Open Source under a BSD 2-Clause License.
Please read the License terms found in the LICENSE file in this repository.



Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.