|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
net.sf.jaer.biasgen.Pot
net.sf.jaer.biasgen.VDAC.VPot
public class VPot
Describes a voltage bias, controlled by a voltage that is generated by a voltage DAC. Used for off-chip voltage DACs for older chips that do not have integrated IPots. A DAC may have an internal reference voltage that results in clipping of the output values to Vdd. For example, if the DAC is running on a 3.3V supply and uses an internal 2.5V reference and also has a gain-of-2 buffer its full scale output would be 5V, but of course the value is clipped to 3.3V.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.jaer.biasgen.Pot |
|---|
Pot.Sex, Pot.Type |
| Field Summary | |
|---|---|
static float |
VOLTAGE_CHANGE_VALUE_VOLTS
the delta voltage to change by in increment and decrement methods |
| Fields inherited from class net.sf.jaer.biasgen.Pot |
|---|
bitValue, CHANGE_FRACTION, chip, chipNumber, displayPosition, group, log, masterbias, name, numBits, numBytes, pinNumber, prefs, sex, tooltipString, type |
| Constructor Summary | |
|---|---|
VPot(Chip chip,
java.lang.String name,
DAC dac,
int channel,
Pot.Type type,
Pot.Sex sex,
int bitValue,
int displayPosition,
java.lang.String tooltipString)
Creates a new instance of VPot and loads the preferred bit value. |
|
| Method Summary | |
|---|---|
void |
changeByFractionOfFullScale(float fraction)
changes VPot value by a fraction of full scale, e.g. |
void |
decrementVoltage()
decrement pot value |
byte[] |
getBinaryRepresentation()
Computes and returns a the reused array of bytes representing the bias to be sent over hardware interface to the device |
byte[] |
getByteRepresentation()
|
int |
getChannel()
|
DAC |
getDac()
|
int |
getDacNumber()
|
float |
getMaxVoltage()
|
float |
getMinVoltage()
|
float |
getPhysicalValue()
returns physical value of bias, e.g. |
java.lang.String |
getPhysicalValueUnits()
return units (e.g. |
float |
getVoltage()
gets the voltage output by this VPot according the bit value times the difference between ref min and ref max, clipped to the DAC's vdd. |
float |
getVoltageResolution()
return resolution of pot in voltage. |
void |
incrementVoltage()
increment pot value |
javax.swing.JComponent |
makeGUIPotControl()
Contructs the UI control for this Pot. |
protected java.lang.String |
prefsKey()
Returns the String key by which this pot is known in the Preferences. |
java.lang.String |
processCommand(RemoteControlCommand command,
java.lang.String input)
Called when remote control recieved for this RemoteControlled. |
void |
setChannel(int channel)
|
void |
setDac(DAC dac)
|
void |
setDacNumber(int dacNumber)
|
void |
setPhysicalValue(float value)
sets physical value of bias |
float |
setVoltage(float voltage)
sets the bit value based on desired voltage, clipped the DAC's vdd. |
| Methods inherited from class net.sf.jaer.biasgen.Pot |
|---|
addObserver, decrementBitValue, getBitValue, getChipNumber, getDisplayPosition, getGroup, getMaxBitValue, getMinBitValue, getName, getNumBits, getNumBytes, getPinNumber, getPreferedBitValue, getSex, getTooltipString, getType, incrementBitValue, loadPreferences, preferenceChange, resume, setBitValue, setDisplayPosition, setGroup, setName, setNumBits, setNumBytes, setPinNumber, setSex, setTooltipString, setType, storePreferences, suspend, toBitPatternString, toString |
| Methods inherited from class java.util.Observable |
|---|
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 |
| Field Detail |
|---|
public static final float VOLTAGE_CHANGE_VALUE_VOLTS
| Constructor Detail |
|---|
public VPot(Chip chip,
java.lang.String name,
DAC dac,
int channel,
Pot.Type type,
Pot.Sex sex,
int bitValue,
int displayPosition,
java.lang.String tooltipString)
name - dac - the DAC on the boardchannel - the DAC channel for this biastype - (NORMAL, CASCODE)sex - Sex (N, P)bitValue - initial bitValuedisplayPosition - position in GUI from top (logical order)tooltipString - a String to display to user of GUI telling them what the pots does| Method Detail |
|---|
public float setVoltage(float voltage)
voltage - in volts
public byte[] getByteRepresentation()
public float getVoltage()
public float getMaxVoltage()
public float getMinVoltage()
public float getVoltageResolution()
public void incrementVoltage()
public void decrementVoltage()
public int getDacNumber()
public void setDacNumber(int dacNumber)
public int getChannel()
public void setChannel(int channel)
public DAC getDac()
public void setDac(DAC dac)
public float getPhysicalValue()
Pot
getPhysicalValue in class Potpublic java.lang.String getPhysicalValueUnits()
Pot
getPhysicalValueUnits in class Potpublic void setPhysicalValue(float value)
Pot
setPhysicalValue in class Potvalue - the physical value, e.g. in amps or voltspublic javax.swing.JComponent makeGUIPotControl()
Pot
makeGUIPotControl in class Potpublic void changeByFractionOfFullScale(float fraction)
fraction - of full scale valuepublic byte[] getBinaryRepresentation()
getBinaryRepresentation in class Potprotected java.lang.String prefsKey()
prefsKey in class Pot
public java.lang.String processCommand(RemoteControlCommand command,
java.lang.String input)
RemoteControlled
processCommand in interface RemoteControlledcommand - the received command that was parsed as being the type sent.input - the input line which starts with the command token.
|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||