public abstract class CamIF
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTED |
static int |
CONNECTION_FAILURE |
static int |
EXECUTABLE_NOT_FOUND |
static int |
EXECUTION_FAILURE |
static java.lang.String |
nirFilterID |
static int |
NOT_CONNECTED |
static java.lang.String |
redFilterID |
static int |
SUCCESS |
static int |
UNRESOLVED_ERROR |
static int |
WRONG_RESPONSE_FORMAT |
| Constructor and Description |
|---|
CamIF() |
| Modifier and Type | Method and Description |
|---|---|
int |
acquireNFrames(int n) |
int |
closeConnection()
Closes the camera interface.
|
java.lang.String |
getAcquireNFrames(int n) |
java.lang.String |
getBufferCommand() |
java.util.ArrayList<CameraStatus> |
getCameraStatus()
Returns a list of structures that hold the status for all the open cameras in the system.
|
CameraStatus |
getCameraStatusByFilter(java.lang.String filter)
Returns the structure that holds the status for the specified camera filter.
|
java.lang.String |
getCloseCamerasCommand() |
java.lang.String |
getCodeString(int code)
Returns a string description of the error code.
|
java.lang.String |
getOpenCamerasCommand() |
java.lang.String |
getSetExposureTimeCommand(double expTime) |
java.lang.String |
getSetFrameRateCommand(double frameRate) |
java.lang.String |
getSetupAcquisitionCommand() |
java.lang.String |
getStartAcquisitionCommand() |
java.lang.String |
getStartRecordingCommand(java.lang.String outputDirname_R,
java.lang.String outputDirname_I,
java.lang.String prefix) |
java.lang.String |
getStatusCommand() |
java.lang.String |
getStopAcquisitionCommand() |
java.lang.String |
getStopRecordingCommand() |
int |
init(java.lang.String ipAddress,
int port)
Initialises connection to the camera system.
|
boolean |
isUpdated() |
int |
openCameraSystem()
Send a command to open all (or both) cameras in the camera system.
|
int |
setExposureTime(double sec)
Sets the exposure time of the frames to be recorded.
|
int |
setFrameRate(double fps)
Sets the frame rate to the camera system.
|
int |
setupAcquisition()
Sets up the acquisition using the following settings:
- 2x2 binning
- 16bit pixel encoding
- global shutter
- readout rate 280MHz
- continuous cycle
- enable metadata
- enable timestamp
- reset timestamp count
|
int |
startAcquisition() |
int |
startRecording(java.lang.String dirname_R,
java.lang.String dirname_I,
java.lang.String prefix)
Starts the recording of the frames, by creating a sequence of raw data chunks.
|
int |
stopAcquisition() |
int |
stopRecording()
Stops the recording of the files.
|
public static final int NOT_CONNECTED
public static final int CONNECTED
public static final int SUCCESS
public static final int UNRESOLVED_ERROR
public static final int CONNECTION_FAILURE
public static final int EXECUTION_FAILURE
public static final int WRONG_RESPONSE_FORMAT
public static final int EXECUTABLE_NOT_FOUND
public static final java.lang.String redFilterID
public static final java.lang.String nirFilterID
public boolean isUpdated()
public int init(java.lang.String ipAddress,
int port)
public int openCameraSystem()
public int setupAcquisition()
public int startRecording(java.lang.String dirname_R,
java.lang.String dirname_I,
java.lang.String prefix)
public int stopRecording()
public int stopAcquisition()
public int acquireNFrames(int n)
public int startAcquisition()
public int setExposureTime(double sec)
sec - public int setFrameRate(double fps)
fps - public java.util.ArrayList<CameraStatus> getCameraStatus()
public CameraStatus getCameraStatusByFilter(java.lang.String filter)
filter - Should be "RED" or "NIR"public int closeConnection()
public java.lang.String getOpenCamerasCommand()
public java.lang.String getCloseCamerasCommand()
public java.lang.String getSetupAcquisitionCommand()
public java.lang.String getStartRecordingCommand(java.lang.String outputDirname_R,
java.lang.String outputDirname_I,
java.lang.String prefix)
public java.lang.String getStartAcquisitionCommand()
public java.lang.String getStopRecordingCommand()
public java.lang.String getAcquireNFrames(int n)
public java.lang.String getStopAcquisitionCommand()
public java.lang.String getSetExposureTimeCommand(double expTime)
public java.lang.String getSetFrameRateCommand(double frameRate)
public java.lang.String getStatusCommand()
public java.lang.String getBufferCommand()
public java.lang.String getCodeString(int code)
code -