org.mbari.siam.foce.utils
Class FOCEAnalogBoardUtil
java.lang.Object
org.mbari.siam.foce.utils.FOCEAnalogBoardUtil
public class FOCEAnalogBoardUtil
- extends java.lang.Object
User utility to turn on/off a relay on a FOCEAnalogBoard
|
Method Summary |
void |
close()
|
static void |
main(java.lang.String[] args)
Main method is for command-line testing |
double |
sample(int chan)
|
double[] |
scan(int chan,
int nchans)
|
void |
setup(int chan,
int range,
int polarity,
int gain)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FOCEAnalogBoardUtil
public FOCEAnalogBoardUtil(int boardAddress)
throws java.io.IOException
- Throws:
java.io.IOException
FOCEAnalogBoardUtil
public FOCEAnalogBoardUtil()
throws java.io.IOException
- Creates board at default address.
- Throws:
java.io.IOException
setup
public void setup(int chan,
int range,
int polarity,
int gain)
throws java.io.IOException
- Throws:
java.io.IOException
sample
public double sample(int chan)
throws java.io.IOException
- Throws:
java.io.IOException
scan
public double[] scan(int chan,
int nchans)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
- Main method is for command-line testing
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.