|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.pentec.adaq.fist.PhoenixComm
public class PhoenixComm
Communication and control class for the Indigo Phoenix camera. Requires: aphoenix.dll (directly) Camera Control.dll (chain loaded) Digitizer Control.dll (chain loaded) IscSyncBrdCtrl.dll (chain loaded) All methods throw PhoenixException on native code errors. Whenever possible, the exception's message will be a textual version of the error code. All methods prefixed with cltCmnd and cltCmndD control the camera across the RS232 line. Methods prefixed with cltCmnd are calls to Camera Control.dll, and methods prefixed with cltCmndD are calls to Digitizer Control.dll. All methods prefixed with syncBrd control the camera across the sync board's HSI serial line and are calls to IscSyncBrdCtrl.dll. Dwell Count: Valid dwell counts are from 0 (off) to 4095. Preset: Valid presets are from 0 to 3. They are referred to as PRESET_[A-D] internally to this class.
| Field Summary |
|---|
| Fields inherited from interface com.pentec.adaq.fist.IPhoenixComm |
|---|
CLOCK_FREQ, MSTR_SYNC_EXTERNAL, MSTR_SYNC_ONBOARD, PRESET_A, PRESET_B, PRESET_C, PRESET_D, PRESETS, REFRAME_SYNC_ENABLED, REFRAME_SYNC_NORMAL_OPERATION, RESTORE_DIGI_STATE, SAVE_DIGI_STATE |
| Constructor Summary | |
|---|---|
PhoenixComm(java.lang.String $ComPort)
This will take a while as we have to wait for the FPA to reach its target temperature before proceeding. |
|
| Method Summary | |
|---|---|
void |
autoInit()
Waits until the temperature has dropped below 80, then calls init() |
void |
close()
Warning: Calling any other methods after calling close() may lead to access violations in the native code. |
private void |
cltCmndDDigiStateImage(short sState)
|
double |
cltCmndDGetFpaTemp()
|
FpaWindow |
cltCmndDGetFpaWindow(byte bPreset)
|
private void |
cltCmndDGetFpaWindow(byte bPreset,
FpaWindow fpaWindow)
|
long |
cltCmndDGetFrameLength(byte bPreset)
|
long |
cltCmndDGetIntegrationTime(byte bPreset,
long lPixelClocksPerFrame)
|
short |
cltCmndDGetPresetDwellCounter(byte bPreset)
|
void |
cltCmndDLoadDigitizerCalFile(java.lang.String $CalFile)
|
void |
cltCmndDSetFpaWindow(byte bPreset,
FpaWindow fpaWindow)
|
private void |
cltCmndDSetFpaWindow(byte bPreset,
short sXSize,
short sYSize,
short sXPos,
short sYPos)
|
void |
cltCmndDSetIntegrationTime(byte bPreset,
long lIntegrationTime,
long lPixelClocksPerFrame)
|
void |
cltCmndDSetPresetDwellCounter(byte bPreset,
short sDwellCount)
|
private void |
cltCmndDSwitchProcessorClock(long lClockFreq)
|
void |
cltCmndVideoTestPattern(boolean isEnabled)
|
void |
init()
Initialize the camera and set defaults. |
static void |
main(java.lang.String[] arg)
|
private void |
serComDelete()
|
private void |
serComInit(java.lang.String $ComPort)
|
int |
syncBrdGetMstrSync()
|
short |
syncBrdGetPresetDwellCount(byte bPreset)
|
private void |
syncBrdInitialize()
This must be called at least once per system boot, or the sync board won't talk, usually causing a crash. |
private void |
syncBrdReframeSync(byte bEnabled)
|
void |
syncBrdSelectMstrSync(int iMstrClockSyncSource)
|
void |
syncBrdSetNumMstrClocksPerFrame(byte bPreset,
long lPixelClocksPerFrame)
|
void |
syncBrdSetPresetDwellCount(byte bPreset,
short sDwellCount)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PhoenixComm(java.lang.String $ComPort)
throws PhoenixException
PhoenixException| Method Detail |
|---|
public void autoInit()
throws PhoenixException
PhoenixExceptionpublic void close()
close in interface IPhoenixComm
private void cltCmndDDigiStateImage(short sState)
throws PhoenixException
PhoenixException
public double cltCmndDGetFpaTemp()
throws PhoenixException
cltCmndDGetFpaTemp in interface IPhoenixCommPhoenixException
public FpaWindow cltCmndDGetFpaWindow(byte bPreset)
throws PhoenixException
cltCmndDGetFpaWindow in interface IPhoenixCommPhoenixException
private void cltCmndDGetFpaWindow(byte bPreset,
FpaWindow fpaWindow)
throws PhoenixException
PhoenixException
public long cltCmndDGetFrameLength(byte bPreset)
throws PhoenixException
cltCmndDGetFrameLength in interface IPhoenixCommPhoenixException
public long cltCmndDGetIntegrationTime(byte bPreset,
long lPixelClocksPerFrame)
throws PhoenixException
cltCmndDGetIntegrationTime in interface IPhoenixCommPhoenixException
public short cltCmndDGetPresetDwellCounter(byte bPreset)
throws PhoenixException
cltCmndDGetPresetDwellCounter in interface IPhoenixCommPhoenixException
public void cltCmndDLoadDigitizerCalFile(java.lang.String $CalFile)
throws PhoenixException
PhoenixException
public void cltCmndDSetFpaWindow(byte bPreset,
FpaWindow fpaWindow)
throws PhoenixException
cltCmndDSetFpaWindow in interface IPhoenixCommPhoenixException
private void cltCmndDSetFpaWindow(byte bPreset,
short sXSize,
short sYSize,
short sXPos,
short sYPos)
throws PhoenixException
PhoenixException
public void cltCmndDSetIntegrationTime(byte bPreset,
long lIntegrationTime,
long lPixelClocksPerFrame)
throws PhoenixException
cltCmndDSetIntegrationTime in interface IPhoenixCommPhoenixException
public void cltCmndDSetPresetDwellCounter(byte bPreset,
short sDwellCount)
throws PhoenixException
cltCmndDSetPresetDwellCounter in interface IPhoenixCommPhoenixException
private void cltCmndDSwitchProcessorClock(long lClockFreq)
throws PhoenixException
PhoenixException
public void cltCmndVideoTestPattern(boolean isEnabled)
throws PhoenixException
cltCmndVideoTestPattern in interface IPhoenixCommPhoenixException
public void init()
throws PhoenixException
PhoenixException
public static void main(java.lang.String[] arg)
throws java.lang.Exception
java.lang.Exceptionprivate void serComDelete()
private void serComInit(java.lang.String $ComPort)
throws PhoenixException
PhoenixException
public int syncBrdGetMstrSync()
throws PhoenixException
syncBrdGetMstrSync in interface IPhoenixCommPhoenixException
public short syncBrdGetPresetDwellCount(byte bPreset)
throws PhoenixException
syncBrdGetPresetDwellCount in interface IPhoenixCommPhoenixException
private void syncBrdInitialize()
throws PhoenixException
PhoenixException
private void syncBrdReframeSync(byte bEnabled)
throws PhoenixException
PhoenixException
public void syncBrdSelectMstrSync(int iMstrClockSyncSource)
throws PhoenixException
syncBrdSelectMstrSync in interface IPhoenixCommPhoenixException
public void syncBrdSetNumMstrClocksPerFrame(byte bPreset,
long lPixelClocksPerFrame)
throws PhoenixException
syncBrdSetNumMstrClocksPerFrame in interface IPhoenixCommPhoenixException
public void syncBrdSetPresetDwellCount(byte bPreset,
short sDwellCount)
throws PhoenixException
syncBrdSetPresetDwellCount in interface IPhoenixCommPhoenixException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||