Package hfDaqCard

Class SmruDaqParameters

All Implemented Interfaces:
Serializable, Cloneable, ManagedParameters

public class SmruDaqParameters extends SoundCardParameters implements Serializable, Cloneable, ManagedParameters
See Also:
  • Field Details

    • serialVersionUID

      public static final long serialVersionUID
      See Also:
    • NCHANNELS

      public static final int NCHANNELS
      See Also:
    • MAX_DEVICES

      public static final int MAX_DEVICES
      See Also:
    • sampleRates

      public static final int[] sampleRates
    • lineargains

      public static final double[] lineargains
    • filters

      public static final double[] filters
    • MAXSAMPLERATE

      public static final int MAXSAMPLERATE
      See Also:
    • VPEAKTOPEAK

      public static final double VPEAKTOPEAK
      See Also:
    • sampleRateIndex

      public int sampleRateIndex
    • channelMask

      public int channelMask
    • channelGainIndex

      public int[] channelGainIndex
    • channelFilterIndex

      public int[] channelFilterIndex
  • Constructor Details

    • SmruDaqParameters

      public SmruDaqParameters(String systemType)
      Parameters:
      systemType -
  • Method Details

    • getNumUsedBoards

      public int getNumUsedBoards(int installedBoards)
      Get the total number of boards that are actually used by the system.
      Parameters:
      installedBoards - number of installed boards.
      Returns:
      the number of used boards.
    • getChannelMask

      public int getChannelMask(int board)
      Get the channel mask for a single board.
      Parameters:
      board - board number
      Returns:
      channel mask
    • getGainIndex

      public int getGainIndex(int board, int channel)
      Get the gain index for a specified board and channel
      Parameters:
      board - board number
      channel - channel number
      Returns:
      gain index to pass to device
    • getFilterIndex

      public int getFilterIndex(int board, int channel)
      Get the filter index for a specified board and channel
      Parameters:
      board - board number
      channel - channel number
      Returns:
      filter index to pass to device
    • getGains

      public static double[] getGains()
    • getSampleRate

      public float getSampleRate()
    • getChannelGain

      public double getChannelGain(int channel)
    • getChannelFilter

      public double getChannelFilter(int channel)
    • clone

      public SmruDaqParameters clone()
      Overrides:
      clone in class SoundCardParameters
    • getSampleRateIndex

      public int getSampleRateIndex()
    • setSampleRateIndex

      public void setSampleRateIndex(int rateIndex)
    • getGainIndex

      public int getGainIndex(int channel)
    • setGainIndex

      public void setGainIndex(int channel, int gainIndex)
    • getFilterIndex

      public int getFilterIndex(int channel)
    • setFilterIndex

      public void setFilterIndex(int channel, int filterIndex)
    • getParameterSet

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Overrides:
      getParameterSet in class SoundCardParameters
      Returns:
      description of the parameters in a class.