Quickstart

import libmushu

# look for amplifiers connected to the system, and return a list of the
# respective classes
available_amps = libmushu.get_available_amps()

# select the first available amp and decorate it with tcp-marker- and
# save-to-file-functionality
ampname = available_amps[0]
amp = libmushu.get_amp(ampname)

# configure the amplifier
amp.configure(cfg)

# start it and collect data until finished
amp.start()
while 1:
    data, trigger = amp.get_data()

# stop the amplifier
amp.stop()

API Documentation

libmushu This module provides two functions: get_available_amps() which will tell you which amplifiers are currently available on your computer, and get_amp() which you can use to get an amplifier instance to work with.
libmushu.ampdecorator This module provides the AmpDecorator class.
libmushu.amplifier This module provides the Amplifier class, which is the base class of all low level amplifier drivers.
libmushu.driver This package contains the low-level drivers for various amplifiers.

Welcome to Mushu’s documentation!

Contents:

Indices and tables

Table Of Contents

Next topic

libmushu package

This Page