org.mbari.siam.foce.utils
Class FOCERelayBoardUtil

java.lang.Object
  extended by org.mbari.siam.foce.utils.FOCERelayBoardUtil

public class FOCERelayBoardUtil
extends java.lang.Object

User utility to turn on/off a relay on a FOCERelayBoard


Constructor Summary
FOCERelayBoardUtil()
          Creates board at default address.
FOCERelayBoardUtil(int boardAddress)
           
 
Method Summary
 void getState()
           
static void main(java.lang.String[] args)
          Main method is for command-line testing
 void runAll(boolean onOff)
           
 void runMult(int relayNum, int numRelays, boolean onOff)
           
 void runOne(int relayNum, boolean onOff)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FOCERelayBoardUtil

public FOCERelayBoardUtil(int boardAddress)
                   throws java.io.IOException
Throws:
java.io.IOException

FOCERelayBoardUtil

public FOCERelayBoardUtil()
                   throws java.io.IOException
Creates board at default address.

Throws:
java.io.IOException
Method Detail

runOne

public void runOne(int relayNum,
                   boolean onOff)
            throws java.io.IOException
Throws:
java.io.IOException

runMult

public void runMult(int relayNum,
                    int numRelays,
                    boolean onOff)
             throws java.io.IOException
Throws:
java.io.IOException

runAll

public void runAll(boolean onOff)
            throws java.io.IOException
Throws:
java.io.IOException

getState

public void getState()
              throws java.io.IOException,
                     java.lang.NumberFormatException
Throws:
java.io.IOException
java.lang.NumberFormatException

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.