org.lsst.ccs.subsystems.fcs.drivers
Class CanOpenDAC

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystems.fcs.drivers.CanOpenDevice
              extended by org.lsst.ccs.subsystems.fcs.drivers.CanOpenDAC
All Implemented Interfaces:
Serializable, Observer, org.lsst.ccs.framework.Configurable, PieceOfHardware

public class CanOpenDAC
extends CanOpenDevice

This is the driver class for the DAC we use in the FCS test bench: CAN-CBX-AO412

Author:
virieux
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.lsst.ccs.framework.Module
org.lsst.ccs.framework.Module.ValueUpdate
 
Nested classes/interfaces inherited from interface org.lsst.ccs.framework.Configurable
org.lsst.ccs.framework.Configurable.Environment
 
Field Summary
static double bitOverVolts
          In order to have 1 Volt send to the output we have to write 3210.27287 in decimal.
 
Fields inherited from class org.lsst.ccs.framework.Module
environment, log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
CanOpenDAC()
           
 
Method Summary
 void writeAnalogOutput(int inputNB, int value)
          Write a value to the output of the DAC
 
Methods inherited from class org.lsst.ccs.subsystems.fcs.drivers.CanOpenDevice
getNodeID, getSerialNB, initializeHardware, initModule, isInitalized, isNodeIdBootedAndOK, readSDO, setNodeID, setSerialNB, toString, writeSDO
 
Methods inherited from class org.lsst.ccs.framework.Module
change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, register, register, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, start, startTicking, tick, update
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.lsst.ccs.subsystems.fcs.common.PieceOfHardware
getName
 

Field Detail

bitOverVolts

public static final double bitOverVolts
In order to have 1 Volt send to the output we have to write 3210.27287 in decimal.

See Also:
Constant Field Values
Constructor Detail

CanOpenDAC

public CanOpenDAC()
Method Detail

writeAnalogOutput

public void writeAnalogOutput(int inputNB,
                              int value)
                       throws SDORequestError,
                              HardwareNotDetectedException
Write a value to the output of the DAC

Parameters:
inputNB - in 0..4
value - given in decimal format
Throws:
SDORequestError
HardwareNotDetectedException


Copyright © 2013 LSST. All Rights Reserved.