org.mbari.siam.distributed.devices
Interface AnalogBoard

All Known Implementing Classes:
FOCEAnalogBoard, FOCESensorayBoard

public interface AnalogBoard

AnalogBoard encapsulates a piece of hardware than can do A/D conversions

Author:
Bob Herlien

Method Summary
 double analogSample(int chan)
          Convert one A/D channel to voltage
 double[] analogScan(int chan, int nchans)
          Convert multiple A/D channels to voltages
 void analogSetup(int chan, int range, int polarity, int gain)
          Set up one or more analog channels
 void close()
          Close this board
 java.lang.String getName()
          Return name.
 int numChans()
          Return number of channels per board
 

Method Detail

analogSetup

void analogSetup(int chan,
                 int range,
                 int polarity,
                 int gain)
                 throws java.io.IOException
Set up one or more analog channels

Throws:
java.io.IOException

analogSample

double analogSample(int chan)
                    throws java.io.IOException,
                           java.lang.NumberFormatException
Convert one A/D channel to voltage

Throws:
java.io.IOException
java.lang.NumberFormatException

analogScan

double[] analogScan(int chan,
                    int nchans)
                    throws java.io.IOException,
                           java.lang.NumberFormatException
Convert multiple A/D channels to voltages

Throws:
java.io.IOException
java.lang.NumberFormatException

close

void close()
           throws java.io.IOException
Close this board

Throws:
java.io.IOException

numChans

int numChans()
Return number of channels per board


getName

java.lang.String getName()
Return name.



Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.