Giter Site home page Giter Site logo

bk2034_gpib's Introduction

BK2034_GPIB

Tools for controlling a Bruel & Kjaer 2034 via the GPIB (IEEE488) bus

You must have a National Instrument GPIB IEEE488 interface (mine is a NI GPIB-USB-HS) with the drivers installed in your system. The utilities have been developed and tested with MacOSX 10.6.9 and 10.9.5 with the National Instruments IEEE488 framework.

File Description
octave.c Performs a read of the spectrum and calculates the 1/3 of octave representation.
totaldoc.c Read or send back a "total documentation" of the 2034 (backup of configuration and measurements).
impedance.c Perform an impedance measurement via a resistive bridge.
record.c Record data on the display of the instrument.
commBK2034.c Several routines for the GPIB control of the 2034.

octave

Third-octave analysis with B&K 2034 via GPIB

Davide Bucci, 2015-2018

This software communicates with a Bruel&Kjaer 2034 double channel FFT spectrum analyzer to perform 1/3 of octave analysis of an input signal The 2034 acquires 801 points for each FFT spectrum, so to cover the whole audio range, the spectrum should be acquired twice. The first time, this is done in a band from 0 Hz to 800 Hz and the second time the higher frequency limit is increased to 25.6 kHz. The measurement is done by considering that a Power Spectral Density is acquired by the instrument. This means that the signal acquired has its power spectral density which is larger of the FFT bands of the instrument. In other words, this works correctly when using a pink or white noise, but not a signal having a line spectrum.

The output can be written on the screen of the PC running this utility, or can be plotted in a graphical way on the screen of the BK 2034 itself. It is also possible to choose a file where to write the results.

The following options are available:

Option Action
-h Show this help
-b Change the board interface index (GPIB0=0,GPIB1=1,etc.)
-p Change the primary address of the BK 2034.
-s Change the secondary address of the BK 2034.
-cb Acquire ch.B instead of ch.A.
-h1 Acquire H1 transfer function instead of the spectrum of ch.A. In this case, the transfer function will be normalized to the width of each octave: a flat H1 transfer function will give a flat third of octave representation.
-h2 Acquire H2 transfer function instead of the spectrum of ch.A. See -h1 for the representation.
-a Choose the number of averages to be done on each acquisition. The default value is 20.
-l Perform only the low frequency acquisition (the higher band therefore will be the 1/3 of octave comprised between 562 Hz and 708 Hz.
-f Perform only the high frequency acquisition (the lowest band will start from 447 Hz).
-o Write on a file the results.
-lf Write on a file the data collected in the first pass.
-ff Write on a file the data collected in the second pass.
-n Do not draw the graph on the BK2034 at the end of acquisitions.
-v Specify vertical range in dB for the graphs (between 5 and 160).
-c Use a calibration file. Measurement results will be normalized to those read from the given file.

totaldoc

Total documentation of a B&K 2034 via GPIB

Davide Bucci, 2015-2018

This software communicates with a Bruel&Kjaer 2034 double channel FFT spectrum analyzer and records or sends back to the instrument its current state, which comprises the measurement settings, the data acquired as well as the visualization settings.

The following options are available:

Option Action
-h Show this help
-b Change the board interface index (GPIB0=0,GPIB1=1,etc.)
-p Change the primary address of the BK 2034.
-s Change the secondary address of the BK 2034.
-r Record a total documentation of the BK 2034 on a given file (2034 -> file).
-t Send back a total documentation to the BK 2034 from a given file (file -> 2034).

impedance

Impedance measurement with a B&K 2034 via GPIB

Davide Bucci, 2015-2018

This software communicates with a Bruel&Kjaer 2034 double channel FFT spectrum analyzer and performs an impedance measurement in the 0-25.6kHz band of the instrument. The measurement may be done by using the internal signal generator of the instrument, as a pseudo-random noise generator. The output of the generator should be used to fed the device under test, by putting a series resistor of known value R. By default, the program considers a value of R of 1000 Ω. Connect the input of channel A to the output of the signal generator and use channel B to probe the voltage at the terminals of the device. The output impedance of the generator (by default 0 Ω) can be taken into account separately.

The following options are available:

Option Action
-h Show this help
-b Change the board interface index (GPIB0=0,GPIB1=1,etc.)
-p Change the primary address of the BK 2034.
-s Change the secondary address of the BK 2034.
-a Choose the number of averages to be done on each acquisition. The default value is 20.
-o Write on a file the results.
-r Changes the resistance R to be used in the divider (in Ω)
-g Changes the generator impedance (in Ω)

record

Record data from a B&K 2034 via GPIB

Davide Bucci, 2015-2018

This software communicates with a Bruel&Kjaer 2034 double channel FFT spectrum analyzer and records what it is shown on the upper display. No processing is done on the data.

The following options are available:

Option Action
-h Show this help
-b Change the board interface index (GPIB0=0,GPIB1=1,etc.)
-p Change the primary address of the BK 2034.
-s Change the secondary address of the BK 2034.
-o Write on a file the results.

bk2034_gpib's People

Contributors

darwinne avatar

Stargazers

Travis Rosenbaum avatar

Watchers

James Cloos avatar  avatar

bk2034_gpib's Issues

Noise generator and impedance

During the impedance measurement, the signal generator should be switched on, configured to "pseudo random noise", an automatic setting of the input sensitivity should be launched, before waiting for the measurement.
With pseudo-random noise, it is better to sync acquisition of ch. A and B to the signal generator and use a rectangular windowing function for the FFT.

Choose between PSD or RMS measurements

At the beginning of the execution, just before launching the acquisition, the control software should ask wether calculations and results should be based on the Power Spectral Density (PSD) or on RMS value. The first case is meaningful with noise analysis, the latter with signals whose spectrum has energy concentrated in discrete lines.

Insert code

Import the code which has already been written in this repository using GIT.

Correct measurement units

The measurement units shown by the "octave" utility should be coherent with the measurements done. dB/YREF*Hz for PSD measurements, dB/YREF for RMS and dB for H1 and H2 (check that!)

Increase the resolution of the 1/3 octave analysis for low frequency.

Currently, the 1/3 of octave analysis for very low frequency done by octave.c is affected by a huge error, since only one spectrum is acquired between 0 Hz and 6.3 kHz. It would be better to acquire the spectrum twice, one below 800 Hz to have a good representation for low frequencies, and one up to 25kHz, to have information on all the audio band.
The acquisition should be done automatically and data gathered during the two passes should be blended together.

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.