public class CMMCore
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Modifier | Constructor and Description |
---|---|
|
CMMCore()
Constructor.
|
protected |
CMMCore(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
addGalvoPolygonVertex(java.lang.String galvoLabel,
int polygonIndex,
double x,
double y) |
void |
clearCircularBuffer()
Removes all images from the circular buffer.
|
void |
clearROI()
Set the region of interest of the current camera to the full frame.
|
boolean |
debugLogEnabled()
Indicates if logging of debug messages is enabled
|
void |
defineConfig(java.lang.String groupName,
java.lang.String configName)
Defines a configuration.
|
void |
defineConfig(java.lang.String groupName,
java.lang.String configName,
java.lang.String deviceLabel,
java.lang.String propName,
java.lang.String value) |
void |
defineConfigGroup(java.lang.String groupName)
Creates an empty configuration group.
|
void |
definePixelSizeConfig(java.lang.String resolutionID)
Defines an empty pixel size entry.
|
void |
definePixelSizeConfig(java.lang.String resolutionID,
java.lang.String deviceLabel,
java.lang.String propName,
java.lang.String value) |
void |
defineStateLabel(java.lang.String stateDeviceLabel,
int state,
java.lang.String stateLabel) |
void |
delete() |
void |
deleteConfig(java.lang.String groupName,
java.lang.String configName)
Deletes a configuration from a group.
|
void |
deleteConfig(java.lang.String groupName,
java.lang.String configName,
java.lang.String deviceLabel,
java.lang.String propName) |
void |
deleteConfigGroup(java.lang.String groupName)
Deletes an entire configuration group.
|
void |
deleteGalvoPolygons(java.lang.String galvoLabel)
Remove all added polygons
|
void |
deletePixelSizeConfig(java.lang.String configName)
Deletes a pixel size configuration.
|
DeviceDetectionStatus |
detectDevice(java.lang.String deviceLabel)
Tries to communicate to a device through a given serial port Used to automate discovery of correct serial port Also configures the serial port correctly
|
boolean |
deviceBusy(java.lang.String label)
Checks the busy status of the specific device.
|
boolean |
deviceTypeBusy(DeviceType devType)
Checks the busy status for all devices of the specific type.
|
void |
displaySLMImage(java.lang.String slmLabel)
Display the waiting image on the SLM.
|
void |
enableContinuousFocus(boolean enable)
Enables or disables the operation of the continuous focusing hardware device.
|
void |
enableDebugLog(boolean enable)
Enable or disable logging of debug messages.
|
static void |
enableFeature(java.lang.String name,
boolean enable)
Enable or disable the given Core feature.
|
void |
enableStderrLog(boolean enable)
Enables or disables log message display on the standard console.
|
protected void |
finalize() |
void |
fullFocus()
Performs focus acquisition and lock for the one-shot focusing device.
|
StrVector |
getAllowedPropertyValues(java.lang.String label,
java.lang.String propName)
Returns all valid values for the specified property.
|
java.lang.String |
getAPIVersionInfo()
Returns the module and device interface versions.
|
java.lang.String |
getAutoFocusDevice()
Returns the label of the currently selected auto-focus device.
|
double |
getAutoFocusOffset()
Measures offset for the one-shot focusing device.
|
boolean |
getAutoShutter()
Returns the current setting of the auto-shutter option.
|
StrVector |
getAvailableConfigGroups()
Returns the names of all defined configuration groups
|
StrVector |
getAvailableConfigs(java.lang.String configGroup)
Returns all defined configuration names in a given group
|
StrVector |
getAvailableDeviceDescriptions(java.lang.String library)
Get descriptions for available devices from the specified library.
|
StrVector |
getAvailableDevices(java.lang.String library)
Get available devices from the specified device library.
|
LongVector |
getAvailableDeviceTypes(java.lang.String library)
Get type information for available devices from the specified library.
|
StrVector |
getAvailablePixelSizeConfigs()
Returns all defined resolution preset names
|
int |
getBufferFreeCapacity()
Returns the number of images that can be added to the buffer without overflowing
|
int |
getBufferTotalCapacity()
Returns the total number of images that can be stored in the buffer
|
long |
getBytesPerPixel()
How many bytes for each pixel.
|
java.lang.String |
getCameraChannelName(long channelNr)
Returns the name of the requested channel as known by the default camera
|
java.lang.String |
getCameraDevice()
Returns the label of the currently selected camera device.
|
java.lang.String |
getChannelGroup()
Returns the group determining the channel selection.
|
long |
getCircularBufferMemoryFootprint()
Returns the size of the Circular Buffer in MB
|
Configuration |
getConfigData(java.lang.String configGroup,
java.lang.String configName)
Returns the configuration object for a given group and name.
|
Configuration |
getConfigGroupState(java.lang.String group)
Returns the partial state of the system, only for the devices included in the specified group.
|
Configuration |
getConfigGroupStateFromCache(java.lang.String group)
Returns the partial state of the system cache, only for the devices included in the specified group.
|
Configuration |
getConfigState(java.lang.String group,
java.lang.String config)
Returns a partial state of the system, only for devices included in the specified configuration.
|
java.lang.String |
getCoreErrorText(int code)
Returns a pre-defined error test with the given error code
|
protected static long |
getCPtr(CMMCore obj) |
java.lang.String |
getCurrentConfig(java.lang.String groupName)
Returns the current configuration for a given group.
|
java.lang.String |
getCurrentConfigFromCache(java.lang.String groupName)
Returns the configuration for a given group based on the data in the cache.
|
double |
getCurrentFocusScore()
Returns the focus score from the default focusing device measured at the current Z position.
|
java.lang.String |
getCurrentPixelSizeConfig()
Get the current pixel configuration name
|
java.lang.String |
getCurrentPixelSizeConfig(boolean cached)
Get the current pixel configuration name
|
StrVector |
getDeviceAdapterNames()
Return the names of discoverable device adapters.
|
StrVector |
getDeviceAdapterSearchPaths()
Return the current device adapter search paths.
|
double |
getDeviceDelayMs(java.lang.String label)
Reports action delay in milliseconds for the specific device.
|
java.lang.String |
getDeviceDescription(java.lang.String label)
Returns description text for a given device label.
|
DeviceInitializationState |
getDeviceInitializationState(java.lang.String label)
Queries the initialization state of the given device.
|
java.lang.String |
getDeviceLibrary(java.lang.String label)
Returns device library (aka module, device adapter) name.
|
java.lang.String |
getDeviceName(java.lang.String label)
Returns device name for a given device label.
|
StrVector |
getDevicePropertyNames(java.lang.String label)
Returns all property names supported by the device.
|
DeviceType |
getDeviceType(java.lang.String label)
Returns device type.
|
double |
getExposure()
Returns the current exposure setting of the camera in milliseconds.
|
double |
getExposure(java.lang.String label)
Returns the current exposure setting of the specified camera in milliseconds.
|
int |
getExposureSequenceMaxLength(java.lang.String cameraLabel)
Gets the maximum length of a camera's exposure sequence.
|
java.lang.String |
getFocusDevice()
Returns the label of the currently selected focus device.
|
int |
getFocusDirection(java.lang.String stageLabel)
Get the focus direction of a stage.
|
java.lang.String |
getGalvoChannel(java.lang.String galvoLabel)
Get the name of the active galvo channel (for a multi-laser galvo device).
|
java.lang.String |
getGalvoDevice()
Returns the label of the currently selected Galvo device.
|
java.awt.geom.Point2D.Double |
getGalvoPosition(java.lang.String galvoDevice) |
void |
getGalvoPosition(java.lang.String galvoLabel,
double[] x_stage,
double[] y_stage) |
double |
getGalvoXMinimum(java.lang.String galvoLabel)
Get the Galvo x minimum
|
double |
getGalvoXRange(java.lang.String galvoLabel)
Get the Galvo x range
|
double |
getGalvoYMinimum(java.lang.String galvoLabel)
Get the Galvo y minimum
|
double |
getGalvoYRange(java.lang.String galvoLabel)
Get the Galvo y range
|
java.lang.Object |
getImage()
Exposes the internal image buffer.
|
java.lang.Object |
getImage(long numChannel)
Returns the internal image buffer for a given Camera Channel
|
long |
getImageBitDepth()
How many bits of dynamic range are to be expected from the camera.
|
int |
getImageBufferSize()
Returns the size of the internal image buffer.
|
long |
getImageHeight()
Vertical dimension of the image buffer in pixels.
|
java.lang.String |
getImageProcessorDevice()
Returns the label of the currently selected image processor device.
|
long |
getImageWidth()
Horizontal dimension of the image buffer in pixels.
|
boolean |
getIncludeSystemStateCache() |
java.lang.String |
getInstalledDeviceDescription(java.lang.String hubLabel,
java.lang.String peripheralLabel) |
StrVector |
getInstalledDevices(java.lang.String hubLabel)
Performs auto-detection and loading of child devices that are attached to a Hub device.
|
double |
getLastFocusScore()
Returns the latest focus score from the focusing device.
|
java.lang.Object |
getLastImage()
Gets the last image from the circular buffer.
|
java.lang.Object |
getLastImageMD(long channel,
long slice,
Metadata md) |
java.lang.Object |
getLastImageMD(Metadata md)
Returns a pointer to the pixels of the image that was last inserted into the circular buffer Also provides all metadata associated with that image
|
TaggedImage |
getLastTaggedImage() |
TaggedImage |
getLastTaggedImage(int cameraChannelIndex) |
StrVector |
getLoadedDevices()
Returns an array of labels for currently loaded devices.
|
StrVector |
getLoadedDevicesOfType(DeviceType devType)
Returns an array of labels for currently loaded devices of specific type.
|
StrVector |
getLoadedPeripheralDevices(java.lang.String hubLabel) |
double |
getMagnificationFactor()
Returns the product of all Magnifiers in the system or 1.0 when none is found This is used internally by GetPixelSizeUm
|
java.util.List<java.awt.Rectangle> |
getMultiROI() |
void |
getMultiROI(UnsignedVector xs,
UnsignedVector ys,
UnsignedVector widths,
UnsignedVector heights) |
java.lang.Object |
getNBeforeLastImageMD(long n,
Metadata md)
Returns a pointer to the pixels of the image that was inserted n images ago Also provides all metadata associated with that image
|
TaggedImage |
getNBeforeLastTaggedImage(long n) |
long |
getNumberOfCameraChannels()
Returns the number of simultaneous channels the default camera is returning.
|
long |
getNumberOfComponents()
Returns the number of components the default camera is returning.
|
int |
getNumberOfStates(java.lang.String stateDeviceLabel)
Returns the total number of available positions (states).
|
java.lang.String |
getParentLabel(java.lang.String peripheralLabel)
Returns parent device.
|
DoubleVector |
getPixelSizeAffine()
Returns the current Affine Transform to related camera pixels with stage movement..
|
DoubleVector |
getPixelSizeAffine(boolean cached)
Returns the current Affine Transform to related camera pixels with stage movement..
|
java.lang.String |
getPixelSizeAffineAsString()
Convenience function.
|
DoubleVector |
getPixelSizeAffineByID(java.lang.String resolutionID)
Returns the Affine Transform to related camera pixels with stage movement for the requested pixel size group The raw affine transform without correction for binning and magnification will be returned.
|
Configuration |
getPixelSizeConfigData(java.lang.String configName)
Returns the configuration object for a give pixel size preset.
|
double |
getPixelSizeUm()
Returns the current pixel size in microns.
|
double |
getPixelSizeUm(boolean cached)
Returns the current pixel size in microns.
|
double |
getPixelSizeUmByID(java.lang.String resolutionID)
Returns the pixel size in um for the requested pixel size group
|
double |
getPosition()
Returns the current position of the stage in microns.
|
double |
getPosition(java.lang.String stageLabel)
Returns the current position of the stage in microns.
|
java.lang.String |
getPrimaryLogFile()
Return the name of the primary Core log file.
|
java.lang.String |
getProperty(java.lang.String label,
java.lang.String propName)
Returns the property value for the specified device.
|
java.lang.String |
getPropertyFromCache(java.lang.String deviceLabel,
java.lang.String propName)
Returns the cached property value for the specified device.
|
double |
getPropertyLowerLimit(java.lang.String label,
java.lang.String propName)
Returns the property lower limit value, if the property has limits - 0 otherwise.
|
int |
getPropertySequenceMaxLength(java.lang.String label,
java.lang.String propName)
Queries device property for the maximum number of events that can be put in a sequence
|
PropertyType |
getPropertyType(java.lang.String label,
java.lang.String propName)
Returns the intrinsic property type.
|
double |
getPropertyUpperLimit(java.lang.String label,
java.lang.String propName)
Returns the property upper limit value, if the property has limits - 0 otherwise.
|
int |
getRemainingImageCount()
Returns number ofimages available in the Circular Buffer
|
java.awt.Rectangle |
getROI() |
void |
getROI(int[] x,
int[] y,
int[] xSize,
int[] ySize) |
java.awt.Rectangle |
getROI(java.lang.String label) |
void |
getROI(java.lang.String label,
int[] x,
int[] y,
int[] xSize,
int[] ySize) |
java.lang.String |
getSerialPortAnswer(java.lang.String portLabel,
java.lang.String term)
Continuously read from the serial port until the terminating sequence is encountered.
|
java.lang.String |
getShutterDevice()
Returns the label of the currently selected shutter device.
|
boolean |
getShutterOpen()
Returns the state of the currently selected (default) shutter.
|
boolean |
getShutterOpen(java.lang.String shutterLabel)
Returns the state of the specified shutter.
|
long |
getSLMBytesPerPixel(java.lang.String slmLabel)
Returns the number of bytes per SLM pixel
|
java.lang.String |
getSLMDevice()
Returns the label of the currently selected SLM device.
|
double |
getSLMExposure(java.lang.String slmLabel)
Returns the exposure time that will be used by the SLM for illumination
|
long |
getSLMHeight(java.lang.String slmLabel)
Returns the height (in "pixels") of the SLM
|
long |
getSLMNumberOfComponents(java.lang.String slmLabel)
Returns the number of components (usually these depict colors) of the SLM For instance, an RGB projector will return 3, but a grey scale SLM returns 1
|
int |
getSLMSequenceMaxLength(java.lang.String slmLabel)
For SLMs that support sequences, returns the maximum length of the sequence that can be uploaded to the device
|
long |
getSLMWidth(java.lang.String slmLabel)
Returns the width (in "pixels") of the SLM
|
int |
getStageSequenceMaxLength(java.lang.String stageLabel)
Gets the maximum length of a stage's position sequence.
|
int |
getState(java.lang.String stateDeviceLabel)
Returns the current state (position) on the specific device.
|
int |
getStateFromLabel(java.lang.String stateDeviceLabel,
java.lang.String stateLabel)
Obtain the state for a given label.
|
java.lang.String |
getStateLabel(java.lang.String stateDeviceLabel)
Returns the current state as the label (string).
|
StrVector |
getStateLabels(java.lang.String stateDeviceLabel)
Return labels for all states
|
Configuration |
getSystemState()
Returns the entire system state, i.e.
|
Configuration |
getSystemStateCache()
Returns the entire system state, i.e.
|
TaggedImage |
getTaggedImage() |
TaggedImage |
getTaggedImage(int cameraChannelIndex) |
int |
getTimeoutMs() |
java.lang.String |
getVersionInfo()
Displays core version.
|
double |
getXPosition()
Obtains the current position of the X axis of the XY stage in microns.
|
double |
getXPosition(java.lang.String xyStageLabel)
Obtains the current position of the X axis of the XY stage in microns.
|
void |
getXYPosition(double[] x_stage,
double[] y_stage)
Obtains the current position of the XY stage in microns.
|
void |
getXYPosition(java.lang.String xyStageLabel,
double[] x_stage,
double[] y_stage) |
java.lang.String |
getXYStageDevice()
Returns the label of the currently selected XYStage device.
|
java.awt.geom.Point2D.Double |
getXYStagePosition()
Convenience function: returns the current XY position of the current
XY stage device as a Point2D.Double.
|
java.awt.geom.Point2D.Double |
getXYStagePosition(java.lang.String stage) |
int |
getXYStageSequenceMaxLength(java.lang.String xyStageLabel)
Gets the maximum length of an XY stage's position sequence.
|
double |
getYPosition()
Obtains the current position of the Y axis of the XY stage in microns.
|
double |
getYPosition(java.lang.String xyStageLabel)
Obtains the current position of the Y axis of the XY stage in microns.
|
boolean |
hasProperty(java.lang.String label,
java.lang.String propName)
Checks if device has a property with a specified name.
|
boolean |
hasPropertyLimits(java.lang.String label,
java.lang.String propName)
Queries device if the specific property has limits.
|
void |
home(java.lang.String xyOrZStageLabel)
Perform a hardware homing operation for an XY or focus/Z stage.
|
void |
incrementalFocus()
Performs incremental focus for the one-shot focusing device.
|
void |
initializeAllDevices()
Calls Initialize() method for each loaded device.
|
void |
initializeCircularBuffer()
Initialize circular buffer based on the current camera settings.
|
void |
initializeDevice(java.lang.String label)
Initializes specific device.
|
boolean |
isBufferOverflowed()
Indicates whether the circular buffer is overflowed
|
boolean |
isConfigDefined(java.lang.String groupName,
java.lang.String configName)
Checks if the configuration already exists within a group.
|
boolean |
isContinuousFocusDrive(java.lang.String stageLabel)
Check if a stage has continuous focusing capability (positions can be set while continuous focus runs).
|
boolean |
isContinuousFocusEnabled()
Checks if the continuous focusing hardware device is ON or OFF.
|
boolean |
isContinuousFocusLocked()
Returns the lock-in status of the continuous focusing device.
|
boolean |
isExposureSequenceable(java.lang.String cameraLabel)
Queries camera if exposure can be used in a sequence
|
static boolean |
isFeatureEnabled(java.lang.String name)
Return whether the given Core feature is currently enabled.
|
boolean |
isGroupDefined(java.lang.String groupName)
Checks if the group already exists.
|
boolean |
isMultiROIEnabled()
Queries the camera to determine if multiple ROIs are currently set.
|
boolean |
isMultiROISupported()
Queries the camera to determine if it supports multiple ROIs.
|
boolean |
isPixelSizeConfigDefined(java.lang.String resolutionID)
Checks if the Pixel Size Resolution already exists
|
boolean |
isPropertyPreInit(java.lang.String label,
java.lang.String propName)
Tells us whether the property must be defined prior to initialization.
|
boolean |
isPropertyReadOnly(java.lang.String label,
java.lang.String propName)
Tells us whether the property can be modified.
|
boolean |
isPropertySequenceable(java.lang.String label,
java.lang.String propName)
Queries device if the specified property can be used in a sequence
|
boolean |
isSequenceRunning()
Check if the current camera is acquiring the sequence Returns false when the sequence is done
|
boolean |
isSequenceRunning(java.lang.String cameraLabel)
Check if the specified camera is acquiring the sequence Returns false when the sequence is done
|
boolean |
isStageLinearSequenceable(java.lang.String stageLabel)
Queries if the stage can be used in a linear sequence A linear sequence is defined by a stepsize and number of slices
|
boolean |
isStageSequenceable(java.lang.String stageLabel)
Queries stage if it can be used in a sequence
|
boolean |
isXYStageSequenceable(java.lang.String xyStageLabel)
Queries XY stage if it can be used in a sequence
|
void |
loadDevice(java.lang.String label,
java.lang.String moduleName,
java.lang.String deviceName) |
void |
loadExposureSequence(java.lang.String cameraLabel,
DoubleVector exposureSequence_ms)
Transfer a sequence of exposure times to the camera.
|
void |
loadGalvoPolygons(java.lang.String galvoLabel)
Load a set of galvo polygons to the device
|
void |
loadPropertySequence(java.lang.String label,
java.lang.String propName,
StrVector eventSequence) |
void |
loadSLMSequence(java.lang.String slmLabel,
java.util.List<byte[]> imageSequence)
Load a sequence of images into the SLM
|
void |
loadStageSequence(java.lang.String stageLabel,
DoubleVector positionSequence)
Transfer a sequence of events/states/whatever to the device This should only be called for device-properties that are sequenceable
|
void |
loadSystemConfiguration(java.lang.String fileName)
Loads the system configuration from the text file conforming to the MM specific format.
|
void |
loadSystemState(java.lang.String fileName)
Loads the system configuration from the text file conforming to the MM specific format.
|
void |
loadXYStageSequence(java.lang.String xyStageLabel,
DoubleVector xSequence,
DoubleVector ySequence) |
void |
logMessage(java.lang.String msg)
Record text message in the log file.
|
void |
logMessage(java.lang.String msg,
boolean debugOnly)
Record text message in the log file.
|
static void |
noop()
A static method that does nothing.
|
void |
pointGalvoAndFire(java.lang.String galvoLabel,
double x,
double y,
double pulseTime_us) |
java.lang.Object |
popNextImage()
Gets and removes the next image from the circular buffer.
|
java.lang.Object |
popNextImageMD(long channel,
long slice,
Metadata md) |
java.lang.Object |
popNextImageMD(Metadata md)
Gets and removes the next image (and metadata) from the circular buffer
|
TaggedImage |
popNextTaggedImage() |
TaggedImage |
popNextTaggedImage(int cameraChannelIndex) |
void |
prepareSequenceAcquisition(java.lang.String cameraLabel)
Prepare the camera for the sequence acquisition to save the time in the StartSequenceAcqusition() call which is supposed to come next.
|
CharVector |
readFromSerialPort(java.lang.String portLabel)
Reads the contents of the Rx buffer.
|
void |
registerCallback(MMEventCallback cb)
Register a callback (listener class).
|
void |
renameConfig(java.lang.String groupName,
java.lang.String oldConfigName,
java.lang.String newConfigName) |
void |
renameConfigGroup(java.lang.String oldGroupName,
java.lang.String newGroupName)
Renames a configuration group.
|
void |
renamePixelSizeConfig(java.lang.String oldConfigName,
java.lang.String newConfigName)
Renames a pixel size configuration.
|
void |
reset()
Unloads all devices from the core, clears all configuration data.
|
void |
runGalvoPolygons(java.lang.String galvoLabel)
Run a loop of galvo polygons
|
void |
runGalvoSequence(java.lang.String galvoLabel)
Run a sequence of galvo positions
|
void |
saveSystemConfiguration(java.lang.String fileName)
Saves the current system configuration to a text file of the MM specific format.
|
void |
saveSystemState(java.lang.String fileName)
Saves the current system state to a text file of the MM specific format.
|
void |
setAdapterOrigin(double newZUm)
Enable software translation of coordinates for the current focus/Z stage.
|
void |
setAdapterOrigin(java.lang.String stageLabel,
double newZUm)
Enable software translation of coordinates for the given focus/Z stage.
|
void |
setAdapterOriginXY(double newXUm,
double newYUm)
Enable software translation of coordinates for the current XY stage.
|
void |
setAdapterOriginXY(java.lang.String xyStageLabel,
double newXUm,
double newYUm) |
void |
setAutoFocusDevice(java.lang.String focusLabel)
Sets the current auto-focus device.
|
void |
setAutoFocusOffset(double offset)
Applies offset the one-shot focusing device.
|
void |
setAutoShutter(boolean state)
If this option is enabled Shutter automatically opens and closes when the image is acquired.
|
void |
setCameraDevice(java.lang.String cameraLabel)
Sets the current camera device.
|
void |
setChannelGroup(java.lang.String channelGroup)
Specifies the group determining the channel selection.
|
void |
setCircularBufferMemoryFootprint(long sizeMB)
Reserve memory for the circular buffer.
|
void |
setConfig(java.lang.String groupName,
java.lang.String configName)
Applies a configuration to a group.
|
void |
setDeviceAdapterSearchPaths(StrVector paths)
Set the device adapter search paths.
|
void |
setDeviceDelayMs(java.lang.String label,
double delayMs)
Overrides the built-in value for the action delay.
|
void |
setExposure(double exp)
Sets the exposure setting of the current camera in milliseconds.
|
void |
setExposure(java.lang.String cameraLabel,
double dExp)
Sets the exposure setting of the specified camera in milliseconds.
|
void |
setFocusDevice(java.lang.String focusLabel)
Sets the current focus device.
|
void |
setFocusDirection(java.lang.String stageLabel,
int sign)
Set the focus direction of a stage.
|
void |
setGalvoDevice(java.lang.String galvoLabel)
Sets the current galvo device.
|
void |
setGalvoIlluminationState(java.lang.String galvoLabel,
boolean on)
Set the galvo's illumination state to on or off
|
void |
setGalvoPolygonRepetitions(java.lang.String galvoLabel,
int repetitions)
Set the number of times to loop galvo polygons
|
void |
setGalvoPosition(java.lang.String galvoLabel,
double x,
double y) |
void |
setGalvoSpotInterval(java.lang.String galvoLabel,
double pulseTime_us) |
void |
setImageProcessorDevice(java.lang.String procLabel)
Sets the current image processor device.
|
void |
setIncludeSystemStateCache(boolean state) |
void |
setMultiROI(java.util.List<java.awt.Rectangle> rects) |
void |
setMultiROI(UnsignedVector xs,
UnsignedVector ys,
UnsignedVector widths,
UnsignedVector heights) |
void |
setOrigin()
Zero the current focus/Z stage's coordinates at the current position.
|
void |
setOrigin(java.lang.String stageLabel)
Zero the given focus/Z stage's coordinates at the current position.
|
void |
setOriginX()
Zero the given XY stage's X coordinate at the current position.
|
void |
setOriginX(java.lang.String xyStageLabel)
Zero the given XY stage's X coordinate at the current position.
|
void |
setOriginXY()
Zero the current XY stage's coordinates at the current position.
|
void |
setOriginXY(java.lang.String xyStageLabel)
Zero the given XY stage's coordinates at the current position.
|
void |
setOriginY()
Zero the given XY stage's Y coordinate at the current position.
|
void |
setOriginY(java.lang.String xyStageLabel)
Zero the given XY stage's Y coordinate at the current position.
|
void |
setParentLabel(java.lang.String deviceLabel,
java.lang.String parentHubLabel)
Sets parent device label
|
void |
setPixelSizeAffine(java.lang.String resolutionID,
DoubleVector affine)
Sets the raw affine transform for the specific pixel size configuration The affine transform consists of the first two rows of a 3x3 matrix, the third row is alsways assumed to be 0.0 0.0 1.0.
|
void |
setPixelSizeConfig(java.lang.String resolutionID)
Applies a Pixel Size Configuration.
|
void |
setPixelSizeUm(java.lang.String resolutionID,
double pixSize)
Sets pixel size in microns for the specified resolution sensing configuration preset.
|
void |
setPosition(double position)
Sets the position of the stage in microns.
|
void |
setPosition(java.lang.String stageLabel,
double position)
Sets the position of the stage in microns.
|
void |
setPrimaryLogFile(java.lang.String filename) |
void |
setPrimaryLogFile(java.lang.String filename,
boolean truncate)
Set the primary Core log file.
|
void |
setProperty(java.lang.String label,
java.lang.String propName,
boolean propValue) |
void |
setProperty(java.lang.String label,
java.lang.String propName,
double propValue) |
void |
setProperty(java.lang.String label,
java.lang.String propName,
float propValue) |
void |
setProperty(java.lang.String label,
java.lang.String propName,
int propValue) |
void |
setProperty(java.lang.String label,
java.lang.String propName,
java.lang.String propValue) |
void |
setRelativePosition(double d)
Sets the relative position of the stage in microns.
|
void |
setRelativePosition(java.lang.String stageLabel,
double d)
Sets the relative position of the stage in microns.
|
void |
setRelativeXYPosition(double dx,
double dy)
Sets the relative position of the XY stage in microns.
|
void |
setRelativeXYPosition(java.lang.String xyStageLabel,
double dx,
double dy) |
void |
setROI(int x,
int y,
int xSize,
int ySize) |
void |
setROI(java.lang.String label,
int x,
int y,
int xSize,
int ySize) |
void |
setSerialPortCommand(java.lang.String portLabel,
java.lang.String command,
java.lang.String term) |
void |
setSerialProperties(java.lang.String portName,
java.lang.String answerTimeout,
java.lang.String baudRate,
java.lang.String delayBetweenCharsMs,
java.lang.String handshaking,
java.lang.String parity,
java.lang.String stopBits) |
void |
setShutterDevice(java.lang.String shutterLabel)
Sets the current shutter device.
|
void |
setShutterOpen(boolean state)
Opens or closes the currently selected (default) shutter.
|
void |
setShutterOpen(java.lang.String shutterLabel,
boolean state)
Opens or closes the specified shutter.
|
void |
setSLMDevice(java.lang.String slmLabel)
Sets the current slm device.
|
void |
setSLMExposure(java.lang.String slmLabel,
double exposure_ms)
For SLM devices with build-in light source (such as projectors) this will set the exposure time, but not (yet) start the illumination
|
void |
setSLMImage(java.lang.String slmLabel,
byte[] pixels)
Write an 8-bit monochrome image to the SLM.
|
void |
setSLMImage(java.lang.String slmLabel,
int[] pixels)
Write an 8-bit monochrome image to the SLM.
|
void |
setSLMPixelsTo(java.lang.String slmLabel,
short intensity)
Set all SLM pixels to a single 8-bit intensity.
|
void |
setSLMPixelsTo(java.lang.String slmLabel,
short red,
short green,
short blue) |
void |
setStageLinearSequence(java.lang.String stageLabel,
double dZ_um,
int nSlices) |
void |
setState(java.lang.String stateDeviceLabel,
int state)
Sets the state (position) on the specific device.
|
void |
setStateLabel(java.lang.String stateDeviceLabel,
java.lang.String stateLabel)
Sets device state using the previously assigned label (string).
|
void |
setSystemState(Configuration conf)
Sets all properties contained in the Configuration object.
|
void |
setTimeoutMs(int timeoutMs) |
void |
setXYPosition(double x,
double y)
Sets the position of the XY stage in microns.
|
void |
setXYPosition(java.lang.String xyStageLabel,
double x,
double y) |
void |
setXYStageDevice(java.lang.String xyStageLabel)
Sets the current XY device.
|
void |
sleep(double intervalMs)
Waits (blocks the calling thread) for specified time in milliseconds.
|
void |
snapImage()
Acquires a single image with current settings.
|
void |
startContinuousSequenceAcquisition(double intervalMs)
Starts the continuous camera sequence acquisition.
|
void |
startExposureSequence(java.lang.String cameraLabel)
Starts an ongoing sequence of triggered exposures in a camera This should only be called for cameras where exposure time is sequenceable
|
void |
startPropertySequence(java.lang.String label,
java.lang.String propName)
Starts an ongoing sequence of triggered events in a property of a device This should only be called for device-properties that are sequenceable
|
int |
startSecondaryLogFile(java.lang.String filename,
boolean enableDebug) |
int |
startSecondaryLogFile(java.lang.String filename,
boolean enableDebug,
boolean truncate) |
int |
startSecondaryLogFile(java.lang.String filename,
boolean enableDebug,
boolean truncate,
boolean synchronous) |
void |
startSequenceAcquisition(int numImages,
double intervalMs,
boolean stopOnOverflow) |
void |
startSequenceAcquisition(java.lang.String cameraLabel,
int numImages,
double intervalMs,
boolean stopOnOverflow) |
void |
startSLMSequence(java.lang.String slmLabel)
Starts the sequence previously uploaded to the SLM
|
void |
startStageSequence(java.lang.String stageLabel)
Starts an ongoing sequence of triggered events in a stage This should only be called for stages
|
void |
startXYStageSequence(java.lang.String xyStageLabel)
Starts an ongoing sequence of triggered events in an XY stage This should only be called for stages
|
boolean |
stderrLogEnabled()
Indicates whether logging output goes to stdErr
|
void |
stop(java.lang.String xyOrZStageLabel)
Stop the XY or focus/Z stage motors
|
void |
stopExposureSequence(java.lang.String cameraLabel)
Stops an ongoing sequence of triggered exposures in a camera This should only be called for cameras where exposure time is sequenceable
|
void |
stopPropertySequence(java.lang.String label,
java.lang.String propName)
Stops an ongoing sequence of triggered events in a property of a device This should only be called for device-properties that are sequenceable
|
void |
stopSecondaryLogFile(int handle)
Stop capturing logging output into an additional file.
|
void |
stopSequenceAcquisition()
Stops streaming camera sequence acquisition.
|
void |
stopSequenceAcquisition(java.lang.String cameraLabel)
Stops streaming camera sequence acquisition for a specified camera.
|
void |
stopSLMSequence(java.lang.String slmLabel)
Stops the SLM sequence if previously started
|
void |
stopStageSequence(java.lang.String stageLabel)
Stops an ongoing sequence of triggered events in a stage This should only be called for stages that are sequenceable
|
void |
stopXYStageSequence(java.lang.String xyStageLabel)
Stops an ongoing sequence of triggered events in an XY stage This should only be called for stages that are sequenceable
|
boolean |
supportsDeviceDetection(java.lang.String deviceLabel)
Return whether or not the device supports automatic device detection (i.e.
|
boolean |
systemBusy()
Checks the busy status of the entire system.
|
void |
unloadAllDevices()
Unloads all devices from the core and resets all configuration data.
|
void |
unloadDevice(java.lang.String label)
Unloads the device from the core and adjusts all configuration data.
|
void |
unloadLibrary(java.lang.String moduleName)
Forcefully unload a library.
|
void |
updateCoreProperties()
Updates CoreProperties (currently all Core properties are devices types) with the loaded hardware.
|
void |
updateSystemStateCache()
Updates the state of the entire hardware.
|
boolean |
usesDeviceDelay(java.lang.String label)
Signals if the device will use the delay setting or not.
|
void |
waitForConfig(java.lang.String group,
java.lang.String configName)
Blocks until all devices included in the configuration become ready.
|
void |
waitForDevice(java.lang.String label)
Waits (blocks the calling thread) until the specified device becomes non-busy.
|
void |
waitForDeviceType(DeviceType devType)
Blocks until all devices of the specific type become ready (not-busy).
|
void |
waitForSystem()
Blocks until all devices in the system become ready (not-busy).
|
void |
writeToSerialPort(java.lang.String portLabel,
CharVector data)
Sends an array of characters to the serial port and returns immediately.
|
protected CMMCore(long cPtr, boolean cMemoryOwn)
public CMMCore()
protected static long getCPtr(CMMCore obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public boolean getIncludeSystemStateCache()
public void setIncludeSystemStateCache(boolean state)
public TaggedImage getTaggedImage(int cameraChannelIndex) throws java.lang.Exception
java.lang.Exception
public TaggedImage getTaggedImage() throws java.lang.Exception
java.lang.Exception
public TaggedImage getLastTaggedImage(int cameraChannelIndex) throws java.lang.Exception
java.lang.Exception
public TaggedImage getLastTaggedImage() throws java.lang.Exception
java.lang.Exception
public TaggedImage getNBeforeLastTaggedImage(long n) throws java.lang.Exception
java.lang.Exception
public TaggedImage popNextTaggedImage(int cameraChannelIndex) throws java.lang.Exception
java.lang.Exception
public TaggedImage popNextTaggedImage() throws java.lang.Exception
java.lang.Exception
public java.awt.Rectangle getROI() throws java.lang.Exception
java.lang.Exception
public java.awt.Rectangle getROI(java.lang.String label) throws java.lang.Exception
java.lang.Exception
public java.util.List<java.awt.Rectangle> getMultiROI() throws java.lang.Exception
java.lang.Exception
public void setMultiROI(java.util.List<java.awt.Rectangle> rects) throws java.lang.Exception
java.lang.Exception
public java.lang.String getPixelSizeAffineAsString() throws java.lang.Exception
java.lang.Exception
public java.awt.geom.Point2D.Double getXYStagePosition(java.lang.String stage) throws java.lang.Exception
java.lang.Exception
public java.awt.geom.Point2D.Double getXYStagePosition() throws java.lang.Exception
java.lang.Exception
public java.awt.geom.Point2D.Double getGalvoPosition(java.lang.String galvoDevice) throws java.lang.Exception
java.lang.Exception
public static void noop()
public static void enableFeature(java.lang.String name, boolean enable) throws java.lang.Exception
java.lang.Exception
public static boolean isFeatureEnabled(java.lang.String name) throws java.lang.Exception
java.lang.Exception
public void loadDevice(java.lang.String label, java.lang.String moduleName, java.lang.String deviceName) throws java.lang.Exception
java.lang.Exception
public void unloadDevice(java.lang.String label) throws java.lang.Exception
java.lang.Exception
public void unloadAllDevices() throws java.lang.Exception
java.lang.Exception
public void initializeAllDevices() throws java.lang.Exception
java.lang.Exception
public void initializeDevice(java.lang.String label) throws java.lang.Exception
java.lang.Exception
public DeviceInitializationState getDeviceInitializationState(java.lang.String label) throws java.lang.Exception
java.lang.Exception
public void reset() throws java.lang.Exception
java.lang.Exception
public void unloadLibrary(java.lang.String moduleName) throws java.lang.Exception
java.lang.Exception
public void updateCoreProperties() throws java.lang.Exception
java.lang.Exception
public java.lang.String getCoreErrorText(int code)
public java.lang.String getVersionInfo()
public java.lang.String getAPIVersionInfo()
public Configuration getSystemState()
public void setSystemState(Configuration conf)
public Configuration getConfigState(java.lang.String group, java.lang.String config) throws java.lang.Exception
java.lang.Exception
public Configuration getConfigGroupState(java.lang.String group) throws java.lang.Exception
java.lang.Exception
public void saveSystemState(java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
public void loadSystemState(java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
public void saveSystemConfiguration(java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
public void loadSystemConfiguration(java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
public void registerCallback(MMEventCallback cb)
public void setPrimaryLogFile(java.lang.String filename, boolean truncate) throws java.lang.Exception
java.lang.Exception
public void setPrimaryLogFile(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public java.lang.String getPrimaryLogFile()
public void logMessage(java.lang.String msg)
public void logMessage(java.lang.String msg, boolean debugOnly)
public void enableDebugLog(boolean enable)
public boolean debugLogEnabled()
public void enableStderrLog(boolean enable)
public boolean stderrLogEnabled()
public int startSecondaryLogFile(java.lang.String filename, boolean enableDebug, boolean truncate, boolean synchronous) throws java.lang.Exception
java.lang.Exception
public int startSecondaryLogFile(java.lang.String filename, boolean enableDebug, boolean truncate) throws java.lang.Exception
java.lang.Exception
public int startSecondaryLogFile(java.lang.String filename, boolean enableDebug) throws java.lang.Exception
java.lang.Exception
public void stopSecondaryLogFile(int handle) throws java.lang.Exception
java.lang.Exception
public StrVector getDeviceAdapterSearchPaths()
public void setDeviceAdapterSearchPaths(StrVector paths)
public StrVector getDeviceAdapterNames() throws java.lang.Exception
java.lang.Exception
public StrVector getAvailableDevices(java.lang.String library) throws java.lang.Exception
java.lang.Exception
public StrVector getAvailableDeviceDescriptions(java.lang.String library) throws java.lang.Exception
java.lang.Exception
public LongVector getAvailableDeviceTypes(java.lang.String library) throws java.lang.Exception
java.lang.Exception
public StrVector getLoadedDevices()
public StrVector getLoadedDevicesOfType(DeviceType devType)
public DeviceType getDeviceType(java.lang.String label) throws java.lang.Exception
java.lang.Exception
public java.lang.String getDeviceLibrary(java.lang.String label) throws java.lang.Exception
java.lang.Exception
public java.lang.String getDeviceName(java.lang.String label) throws java.lang.Exception
java.lang.Exception
public java.lang.String getDeviceDescription(java.lang.String label) throws java.lang.Exception
java.lang.Exception
public StrVector getDevicePropertyNames(java.lang.String label) throws java.lang.Exception
java.lang.Exception
public boolean hasProperty(java.lang.String label, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public java.lang.String getProperty(java.lang.String label, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public void setProperty(java.lang.String label, java.lang.String propName, java.lang.String propValue) throws java.lang.Exception
java.lang.Exception
public void setProperty(java.lang.String label, java.lang.String propName, boolean propValue) throws java.lang.Exception
java.lang.Exception
public void setProperty(java.lang.String label, java.lang.String propName, int propValue) throws java.lang.Exception
java.lang.Exception
public void setProperty(java.lang.String label, java.lang.String propName, float propValue) throws java.lang.Exception
java.lang.Exception
public void setProperty(java.lang.String label, java.lang.String propName, double propValue) throws java.lang.Exception
java.lang.Exception
public StrVector getAllowedPropertyValues(java.lang.String label, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public boolean isPropertyReadOnly(java.lang.String label, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public boolean isPropertyPreInit(java.lang.String label, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public boolean isPropertySequenceable(java.lang.String label, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public boolean hasPropertyLimits(java.lang.String label, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public double getPropertyLowerLimit(java.lang.String label, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public double getPropertyUpperLimit(java.lang.String label, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public PropertyType getPropertyType(java.lang.String label, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public void startPropertySequence(java.lang.String label, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public void stopPropertySequence(java.lang.String label, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public int getPropertySequenceMaxLength(java.lang.String label, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public void loadPropertySequence(java.lang.String label, java.lang.String propName, StrVector eventSequence) throws java.lang.Exception
java.lang.Exception
public boolean deviceBusy(java.lang.String label) throws java.lang.Exception
java.lang.Exception
public void waitForDevice(java.lang.String label) throws java.lang.Exception
java.lang.Exception
public void waitForConfig(java.lang.String group, java.lang.String configName) throws java.lang.Exception
java.lang.Exception
public boolean systemBusy() throws java.lang.Exception
java.lang.Exception
public void waitForSystem() throws java.lang.Exception
java.lang.Exception
public boolean deviceTypeBusy(DeviceType devType) throws java.lang.Exception
java.lang.Exception
public void waitForDeviceType(DeviceType devType) throws java.lang.Exception
java.lang.Exception
public double getDeviceDelayMs(java.lang.String label) throws java.lang.Exception
java.lang.Exception
public void setDeviceDelayMs(java.lang.String label, double delayMs) throws java.lang.Exception
java.lang.Exception
public boolean usesDeviceDelay(java.lang.String label) throws java.lang.Exception
java.lang.Exception
public void setTimeoutMs(int timeoutMs)
public int getTimeoutMs()
public void sleep(double intervalMs)
public java.lang.String getCameraDevice()
public java.lang.String getShutterDevice()
public java.lang.String getFocusDevice()
public java.lang.String getXYStageDevice()
public java.lang.String getAutoFocusDevice()
public java.lang.String getImageProcessorDevice()
public java.lang.String getSLMDevice()
public java.lang.String getGalvoDevice()
public java.lang.String getChannelGroup()
public void setCameraDevice(java.lang.String cameraLabel) throws java.lang.Exception
java.lang.Exception
public void setShutterDevice(java.lang.String shutterLabel) throws java.lang.Exception
java.lang.Exception
public void setFocusDevice(java.lang.String focusLabel) throws java.lang.Exception
java.lang.Exception
public void setXYStageDevice(java.lang.String xyStageLabel) throws java.lang.Exception
java.lang.Exception
public void setAutoFocusDevice(java.lang.String focusLabel) throws java.lang.Exception
java.lang.Exception
public void setImageProcessorDevice(java.lang.String procLabel) throws java.lang.Exception
java.lang.Exception
public void setSLMDevice(java.lang.String slmLabel) throws java.lang.Exception
java.lang.Exception
public void setGalvoDevice(java.lang.String galvoLabel) throws java.lang.Exception
java.lang.Exception
public void setChannelGroup(java.lang.String channelGroup) throws java.lang.Exception
java.lang.Exception
public Configuration getSystemStateCache()
public void updateSystemStateCache()
public java.lang.String getPropertyFromCache(java.lang.String deviceLabel, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public java.lang.String getCurrentConfigFromCache(java.lang.String groupName) throws java.lang.Exception
java.lang.Exception
public Configuration getConfigGroupStateFromCache(java.lang.String group) throws java.lang.Exception
java.lang.Exception
public void defineConfig(java.lang.String groupName, java.lang.String configName) throws java.lang.Exception
java.lang.Exception
public void defineConfig(java.lang.String groupName, java.lang.String configName, java.lang.String deviceLabel, java.lang.String propName, java.lang.String value) throws java.lang.Exception
java.lang.Exception
public void defineConfigGroup(java.lang.String groupName) throws java.lang.Exception
java.lang.Exception
public void deleteConfigGroup(java.lang.String groupName) throws java.lang.Exception
java.lang.Exception
public void renameConfigGroup(java.lang.String oldGroupName, java.lang.String newGroupName) throws java.lang.Exception
java.lang.Exception
public boolean isGroupDefined(java.lang.String groupName)
public boolean isConfigDefined(java.lang.String groupName, java.lang.String configName)
public void setConfig(java.lang.String groupName, java.lang.String configName) throws java.lang.Exception
java.lang.Exception
public void deleteConfig(java.lang.String groupName, java.lang.String configName) throws java.lang.Exception
java.lang.Exception
public void deleteConfig(java.lang.String groupName, java.lang.String configName, java.lang.String deviceLabel, java.lang.String propName) throws java.lang.Exception
java.lang.Exception
public void renameConfig(java.lang.String groupName, java.lang.String oldConfigName, java.lang.String newConfigName) throws java.lang.Exception
java.lang.Exception
public StrVector getAvailableConfigGroups()
public StrVector getAvailableConfigs(java.lang.String configGroup)
public java.lang.String getCurrentConfig(java.lang.String groupName) throws java.lang.Exception
java.lang.Exception
public Configuration getConfigData(java.lang.String configGroup, java.lang.String configName) throws java.lang.Exception
java.lang.Exception
public java.lang.String getCurrentPixelSizeConfig() throws java.lang.Exception
java.lang.Exception
public java.lang.String getCurrentPixelSizeConfig(boolean cached) throws java.lang.Exception
java.lang.Exception
public double getPixelSizeUm()
public double getPixelSizeUm(boolean cached)
public double getPixelSizeUmByID(java.lang.String resolutionID) throws java.lang.Exception
java.lang.Exception
public DoubleVector getPixelSizeAffine() throws java.lang.Exception
java.lang.Exception
public DoubleVector getPixelSizeAffine(boolean cached) throws java.lang.Exception
java.lang.Exception
public DoubleVector getPixelSizeAffineByID(java.lang.String resolutionID) throws java.lang.Exception
java.lang.Exception
public double getMagnificationFactor()
public void setPixelSizeUm(java.lang.String resolutionID, double pixSize) throws java.lang.Exception
java.lang.Exception
public void setPixelSizeAffine(java.lang.String resolutionID, DoubleVector affine) throws java.lang.Exception
java.lang.Exception
public void definePixelSizeConfig(java.lang.String resolutionID, java.lang.String deviceLabel, java.lang.String propName, java.lang.String value) throws java.lang.Exception
java.lang.Exception
public void definePixelSizeConfig(java.lang.String resolutionID) throws java.lang.Exception
java.lang.Exception
public StrVector getAvailablePixelSizeConfigs()
public boolean isPixelSizeConfigDefined(java.lang.String resolutionID) throws java.lang.Exception
java.lang.Exception
public void setPixelSizeConfig(java.lang.String resolutionID) throws java.lang.Exception
java.lang.Exception
public void renamePixelSizeConfig(java.lang.String oldConfigName, java.lang.String newConfigName) throws java.lang.Exception
java.lang.Exception
public void deletePixelSizeConfig(java.lang.String configName) throws java.lang.Exception
java.lang.Exception
public Configuration getPixelSizeConfigData(java.lang.String configName) throws java.lang.Exception
java.lang.Exception
public void setROI(int x, int y, int xSize, int ySize) throws java.lang.Exception
java.lang.Exception
public void setROI(java.lang.String label, int x, int y, int xSize, int ySize) throws java.lang.Exception
java.lang.Exception
public void getROI(int[] x, int[] y, int[] xSize, int[] ySize) throws java.lang.Exception
java.lang.Exception
public void getROI(java.lang.String label, int[] x, int[] y, int[] xSize, int[] ySize) throws java.lang.Exception
java.lang.Exception
public void clearROI() throws java.lang.Exception
java.lang.Exception
public boolean isMultiROISupported() throws java.lang.Exception
java.lang.Exception
public boolean isMultiROIEnabled() throws java.lang.Exception
java.lang.Exception
public void setMultiROI(UnsignedVector xs, UnsignedVector ys, UnsignedVector widths, UnsignedVector heights) throws java.lang.Exception
java.lang.Exception
public void getMultiROI(UnsignedVector xs, UnsignedVector ys, UnsignedVector widths, UnsignedVector heights) throws java.lang.Exception
java.lang.Exception
public void setExposure(double exp) throws java.lang.Exception
java.lang.Exception
public void setExposure(java.lang.String cameraLabel, double dExp) throws java.lang.Exception
java.lang.Exception
public double getExposure() throws java.lang.Exception
java.lang.Exception
public double getExposure(java.lang.String label) throws java.lang.Exception
java.lang.Exception
public void snapImage() throws java.lang.Exception
java.lang.Exception
public java.lang.Object getImage() throws java.lang.Exception
java.lang.Exception
public java.lang.Object getImage(long numChannel) throws java.lang.Exception
java.lang.Exception
public long getImageWidth()
public long getImageHeight()
public long getBytesPerPixel()
public long getImageBitDepth()
public long getNumberOfComponents()
public long getNumberOfCameraChannels()
public java.lang.String getCameraChannelName(long channelNr)
public int getImageBufferSize()
public void setAutoShutter(boolean state)
public boolean getAutoShutter()
public void setShutterOpen(boolean state) throws java.lang.Exception
java.lang.Exception
public boolean getShutterOpen() throws java.lang.Exception
java.lang.Exception
public void setShutterOpen(java.lang.String shutterLabel, boolean state) throws java.lang.Exception
java.lang.Exception
public boolean getShutterOpen(java.lang.String shutterLabel) throws java.lang.Exception
java.lang.Exception
public void startSequenceAcquisition(int numImages, double intervalMs, boolean stopOnOverflow) throws java.lang.Exception
java.lang.Exception
public void startSequenceAcquisition(java.lang.String cameraLabel, int numImages, double intervalMs, boolean stopOnOverflow) throws java.lang.Exception
java.lang.Exception
public void prepareSequenceAcquisition(java.lang.String cameraLabel) throws java.lang.Exception
java.lang.Exception
public void startContinuousSequenceAcquisition(double intervalMs) throws java.lang.Exception
java.lang.Exception
public void stopSequenceAcquisition() throws java.lang.Exception
java.lang.Exception
public void stopSequenceAcquisition(java.lang.String cameraLabel) throws java.lang.Exception
java.lang.Exception
public boolean isSequenceRunning()
public boolean isSequenceRunning(java.lang.String cameraLabel) throws java.lang.Exception
java.lang.Exception
public java.lang.Object getLastImage() throws java.lang.Exception
java.lang.Exception
public java.lang.Object popNextImage() throws java.lang.Exception
java.lang.Exception
public java.lang.Object getLastImageMD(long channel, long slice, Metadata md) throws java.lang.Exception
java.lang.Exception
public java.lang.Object popNextImageMD(long channel, long slice, Metadata md) throws java.lang.Exception
java.lang.Exception
public java.lang.Object getLastImageMD(Metadata md) throws java.lang.Exception
java.lang.Exception
public java.lang.Object getNBeforeLastImageMD(long n, Metadata md) throws java.lang.Exception
java.lang.Exception
public java.lang.Object popNextImageMD(Metadata md) throws java.lang.Exception
java.lang.Exception
public int getRemainingImageCount()
public int getBufferTotalCapacity()
public int getBufferFreeCapacity()
public boolean isBufferOverflowed()
public void setCircularBufferMemoryFootprint(long sizeMB) throws java.lang.Exception
java.lang.Exception
public long getCircularBufferMemoryFootprint()
public void initializeCircularBuffer() throws java.lang.Exception
java.lang.Exception
public void clearCircularBuffer() throws java.lang.Exception
java.lang.Exception
public boolean isExposureSequenceable(java.lang.String cameraLabel) throws java.lang.Exception
java.lang.Exception
public void startExposureSequence(java.lang.String cameraLabel) throws java.lang.Exception
java.lang.Exception
public void stopExposureSequence(java.lang.String cameraLabel) throws java.lang.Exception
java.lang.Exception
public int getExposureSequenceMaxLength(java.lang.String cameraLabel) throws java.lang.Exception
java.lang.Exception
public void loadExposureSequence(java.lang.String cameraLabel, DoubleVector exposureSequence_ms) throws java.lang.Exception
java.lang.Exception
public double getLastFocusScore()
public double getCurrentFocusScore()
public void enableContinuousFocus(boolean enable) throws java.lang.Exception
java.lang.Exception
public boolean isContinuousFocusEnabled() throws java.lang.Exception
java.lang.Exception
public boolean isContinuousFocusLocked() throws java.lang.Exception
java.lang.Exception
public boolean isContinuousFocusDrive(java.lang.String stageLabel) throws java.lang.Exception
java.lang.Exception
public void fullFocus() throws java.lang.Exception
java.lang.Exception
public void incrementalFocus() throws java.lang.Exception
java.lang.Exception
public void setAutoFocusOffset(double offset) throws java.lang.Exception
java.lang.Exception
public double getAutoFocusOffset() throws java.lang.Exception
java.lang.Exception
public void setState(java.lang.String stateDeviceLabel, int state) throws java.lang.Exception
java.lang.Exception
public int getState(java.lang.String stateDeviceLabel) throws java.lang.Exception
java.lang.Exception
public int getNumberOfStates(java.lang.String stateDeviceLabel)
public void setStateLabel(java.lang.String stateDeviceLabel, java.lang.String stateLabel) throws java.lang.Exception
java.lang.Exception
public java.lang.String getStateLabel(java.lang.String stateDeviceLabel) throws java.lang.Exception
java.lang.Exception
public void defineStateLabel(java.lang.String stateDeviceLabel, int state, java.lang.String stateLabel) throws java.lang.Exception
java.lang.Exception
public StrVector getStateLabels(java.lang.String stateDeviceLabel) throws java.lang.Exception
java.lang.Exception
public int getStateFromLabel(java.lang.String stateDeviceLabel, java.lang.String stateLabel) throws java.lang.Exception
java.lang.Exception
public void setPosition(java.lang.String stageLabel, double position) throws java.lang.Exception
java.lang.Exception
public void setPosition(double position) throws java.lang.Exception
java.lang.Exception
public double getPosition(java.lang.String stageLabel) throws java.lang.Exception
java.lang.Exception
public double getPosition() throws java.lang.Exception
java.lang.Exception
public void setRelativePosition(java.lang.String stageLabel, double d) throws java.lang.Exception
java.lang.Exception
public void setRelativePosition(double d) throws java.lang.Exception
java.lang.Exception
public void setOrigin(java.lang.String stageLabel) throws java.lang.Exception
java.lang.Exception
public void setOrigin() throws java.lang.Exception
java.lang.Exception
public void setAdapterOrigin(java.lang.String stageLabel, double newZUm) throws java.lang.Exception
java.lang.Exception
public void setAdapterOrigin(double newZUm) throws java.lang.Exception
java.lang.Exception
public void setFocusDirection(java.lang.String stageLabel, int sign)
public int getFocusDirection(java.lang.String stageLabel) throws java.lang.Exception
java.lang.Exception
public boolean isStageSequenceable(java.lang.String stageLabel) throws java.lang.Exception
java.lang.Exception
public boolean isStageLinearSequenceable(java.lang.String stageLabel) throws java.lang.Exception
java.lang.Exception
public void startStageSequence(java.lang.String stageLabel) throws java.lang.Exception
java.lang.Exception
public void stopStageSequence(java.lang.String stageLabel) throws java.lang.Exception
java.lang.Exception
public int getStageSequenceMaxLength(java.lang.String stageLabel) throws java.lang.Exception
java.lang.Exception
public void loadStageSequence(java.lang.String stageLabel, DoubleVector positionSequence) throws java.lang.Exception
java.lang.Exception
public void setStageLinearSequence(java.lang.String stageLabel, double dZ_um, int nSlices) throws java.lang.Exception
java.lang.Exception
public void setXYPosition(java.lang.String xyStageLabel, double x, double y) throws java.lang.Exception
java.lang.Exception
public void setXYPosition(double x, double y) throws java.lang.Exception
java.lang.Exception
public void setRelativeXYPosition(java.lang.String xyStageLabel, double dx, double dy) throws java.lang.Exception
java.lang.Exception
public void setRelativeXYPosition(double dx, double dy) throws java.lang.Exception
java.lang.Exception
public void getXYPosition(java.lang.String xyStageLabel, double[] x_stage, double[] y_stage) throws java.lang.Exception
java.lang.Exception
public void getXYPosition(double[] x_stage, double[] y_stage) throws java.lang.Exception
java.lang.Exception
public double getXPosition(java.lang.String xyStageLabel) throws java.lang.Exception
java.lang.Exception
public double getYPosition(java.lang.String xyStageLabel) throws java.lang.Exception
java.lang.Exception
public double getXPosition() throws java.lang.Exception
java.lang.Exception
public double getYPosition() throws java.lang.Exception
java.lang.Exception
public void stop(java.lang.String xyOrZStageLabel) throws java.lang.Exception
java.lang.Exception
public void home(java.lang.String xyOrZStageLabel) throws java.lang.Exception
java.lang.Exception
public void setOriginXY(java.lang.String xyStageLabel) throws java.lang.Exception
java.lang.Exception
public void setOriginXY() throws java.lang.Exception
java.lang.Exception
public void setOriginX(java.lang.String xyStageLabel) throws java.lang.Exception
java.lang.Exception
public void setOriginX() throws java.lang.Exception
java.lang.Exception
public void setOriginY(java.lang.String xyStageLabel) throws java.lang.Exception
java.lang.Exception
public void setOriginY() throws java.lang.Exception
java.lang.Exception
public void setAdapterOriginXY(java.lang.String xyStageLabel, double newXUm, double newYUm) throws java.lang.Exception
java.lang.Exception
public void setAdapterOriginXY(double newXUm, double newYUm) throws java.lang.Exception
java.lang.Exception
public boolean isXYStageSequenceable(java.lang.String xyStageLabel) throws java.lang.Exception
java.lang.Exception
public void startXYStageSequence(java.lang.String xyStageLabel) throws java.lang.Exception
java.lang.Exception
public void stopXYStageSequence(java.lang.String xyStageLabel) throws java.lang.Exception
java.lang.Exception
public int getXYStageSequenceMaxLength(java.lang.String xyStageLabel) throws java.lang.Exception
java.lang.Exception
public void loadXYStageSequence(java.lang.String xyStageLabel, DoubleVector xSequence, DoubleVector ySequence) throws java.lang.Exception
java.lang.Exception
public void setSerialProperties(java.lang.String portName, java.lang.String answerTimeout, java.lang.String baudRate, java.lang.String delayBetweenCharsMs, java.lang.String handshaking, java.lang.String parity, java.lang.String stopBits) throws java.lang.Exception
java.lang.Exception
public void setSerialPortCommand(java.lang.String portLabel, java.lang.String command, java.lang.String term) throws java.lang.Exception
java.lang.Exception
public java.lang.String getSerialPortAnswer(java.lang.String portLabel, java.lang.String term) throws java.lang.Exception
java.lang.Exception
public void writeToSerialPort(java.lang.String portLabel, CharVector data) throws java.lang.Exception
java.lang.Exception
public CharVector readFromSerialPort(java.lang.String portLabel) throws java.lang.Exception
java.lang.Exception
public void setSLMImage(java.lang.String slmLabel, byte[] pixels) throws java.lang.Exception
java.lang.Exception
public void setSLMImage(java.lang.String slmLabel, int[] pixels) throws java.lang.Exception
java.lang.Exception
public void setSLMPixelsTo(java.lang.String slmLabel, short intensity) throws java.lang.Exception
java.lang.Exception
public void setSLMPixelsTo(java.lang.String slmLabel, short red, short green, short blue) throws java.lang.Exception
java.lang.Exception
public void displaySLMImage(java.lang.String slmLabel) throws java.lang.Exception
java.lang.Exception
public void setSLMExposure(java.lang.String slmLabel, double exposure_ms) throws java.lang.Exception
java.lang.Exception
public double getSLMExposure(java.lang.String slmLabel) throws java.lang.Exception
java.lang.Exception
public long getSLMWidth(java.lang.String slmLabel) throws java.lang.Exception
java.lang.Exception
public long getSLMHeight(java.lang.String slmLabel) throws java.lang.Exception
java.lang.Exception
public long getSLMNumberOfComponents(java.lang.String slmLabel) throws java.lang.Exception
java.lang.Exception
public long getSLMBytesPerPixel(java.lang.String slmLabel) throws java.lang.Exception
java.lang.Exception
public int getSLMSequenceMaxLength(java.lang.String slmLabel) throws java.lang.Exception
java.lang.Exception
public void startSLMSequence(java.lang.String slmLabel) throws java.lang.Exception
java.lang.Exception
public void stopSLMSequence(java.lang.String slmLabel) throws java.lang.Exception
java.lang.Exception
public void loadSLMSequence(java.lang.String slmLabel, java.util.List<byte[]> imageSequence) throws java.lang.Exception
java.lang.Exception
public void pointGalvoAndFire(java.lang.String galvoLabel, double x, double y, double pulseTime_us) throws java.lang.Exception
java.lang.Exception
public void setGalvoSpotInterval(java.lang.String galvoLabel, double pulseTime_us) throws java.lang.Exception
java.lang.Exception
public void setGalvoPosition(java.lang.String galvoLabel, double x, double y) throws java.lang.Exception
java.lang.Exception
public void getGalvoPosition(java.lang.String galvoLabel, double[] x_stage, double[] y_stage) throws java.lang.Exception
java.lang.Exception
public void setGalvoIlluminationState(java.lang.String galvoLabel, boolean on) throws java.lang.Exception
java.lang.Exception
public double getGalvoXRange(java.lang.String galvoLabel) throws java.lang.Exception
java.lang.Exception
public double getGalvoXMinimum(java.lang.String galvoLabel) throws java.lang.Exception
java.lang.Exception
public double getGalvoYRange(java.lang.String galvoLabel) throws java.lang.Exception
java.lang.Exception
public double getGalvoYMinimum(java.lang.String galvoLabel) throws java.lang.Exception
java.lang.Exception
public void addGalvoPolygonVertex(java.lang.String galvoLabel, int polygonIndex, double x, double y) throws java.lang.Exception
java.lang.Exception
public void deleteGalvoPolygons(java.lang.String galvoLabel) throws java.lang.Exception
java.lang.Exception
public void loadGalvoPolygons(java.lang.String galvoLabel) throws java.lang.Exception
java.lang.Exception
public void setGalvoPolygonRepetitions(java.lang.String galvoLabel, int repetitions) throws java.lang.Exception
java.lang.Exception
public void runGalvoPolygons(java.lang.String galvoLabel) throws java.lang.Exception
java.lang.Exception
public void runGalvoSequence(java.lang.String galvoLabel) throws java.lang.Exception
java.lang.Exception
public java.lang.String getGalvoChannel(java.lang.String galvoLabel) throws java.lang.Exception
java.lang.Exception
public boolean supportsDeviceDetection(java.lang.String deviceLabel)
public DeviceDetectionStatus detectDevice(java.lang.String deviceLabel)
public java.lang.String getParentLabel(java.lang.String peripheralLabel) throws java.lang.Exception
java.lang.Exception
public void setParentLabel(java.lang.String deviceLabel, java.lang.String parentHubLabel) throws java.lang.Exception
java.lang.Exception
public StrVector getInstalledDevices(java.lang.String hubLabel) throws java.lang.Exception
java.lang.Exception
public java.lang.String getInstalledDeviceDescription(java.lang.String hubLabel, java.lang.String peripheralLabel) throws java.lang.Exception
java.lang.Exception
public StrVector getLoadedPeripheralDevices(java.lang.String hubLabel) throws java.lang.Exception
java.lang.Exception