Skip to content

Python driver for the Bruel & Kjaer turntable system type 9640.

Notifications You must be signed in to change notification settings

LCAV/PyTurntableBK9640

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Bruel & Kjaer Turntable System Driver

This is a simple python driver for the B&K Turntable System Type 9640 using the PyVISA module, itself a wrapper around the NI-VISA library (available for windows, linux, and mac).

As of now, only absolute positioning has been implemented.

Installation

First, the NI-VISA library should be download and installed. Instructions are available in the PyVISA documentation.

Second, the PyVISA library can be installed from pip directly.

pip install -U pyvisa

Quick Start

This is a simple example of setting the turntable in some absolute direction. First, the instrument name can be printed using the convenience function turntable.list_instruments().

> import turntable
> print(turntable.list_instruments())
('ASRL1::INSTR','ASRL2::INSTR','ASRL3::INSTR')

Knowing the name, the turntable is controlled in the following way (assuming the third instrument is the one we need). Here the table is turned the direction at 37 degrees.

> import turntable
> table = turntable.TurnTable('ASRL3::INSTR')
> table.turn_abs(37)

The zero location of the table can be set to the current location by typing

> table.set_zero()

License

Copyright 2017 Robin Scheibler

/*
 * ----------------------------------------------------------------------------
 * "THE BEER-WARE LICENSE" (Revision 42):
 * <fakufaku@gmail.com> wrote this file.  As long as you retain this notice you
 * can do whatever you want with this stuff. If we meet some day, and you think
 * this stuff is worth it, you can buy me a beer in return.     Robin Scheibler
 * ----------------------------------------------------------------------------
 */

About

Python driver for the Bruel & Kjaer turntable system type 9640.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages