Skip to content

Instantly share code, notes, and snippets.

@jakebolewski
Last active Dec 17, 2015
Embed
What would you like to do?
Auto generated Micro Manger start up file
/**
*******************************************************************************
**************************** autogenerated ************************************
*******************************************************************************
**/
/*** Reset **/
mmc.reset();
mmc.setProperty("Core", "Initialize", "0");
/** ********** Device load map ********** **/
Hashtable deviceLoadMap = new Hashtable();
deviceLoadMap.put("COM1", false);
deviceLoadMap.put("COM2", false);
deviceLoadMap.put("COM10", false);
deviceLoadMap.put("COM12", false);
deviceLoadMap.put("COM13", false);
deviceLoadMap.put("COM14", false);
deviceLoadMap.put("Horizontal", false);
deviceLoadMap.put("MicroDrive XY Stage", false);
deviceLoadMap.put("MCL NanoDrive Z Stage", false);
deviceLoadMap.put("MCL NanoDrive XY Stage", false);
deviceLoadMap.put("Spectra", false);
deviceLoadMap.put("Multi Camera", false);
deviceLoadMap.put("LudlController", false);
deviceLoadMap.put("LudlWheel Horizontal", false);
deviceLoadMap.put("LudlWheel Vertical", false);
deviceLoadMap.put("LMM5-Hub", false);
deviceLoadMap.put("LMM5-Shutter", false);
deviceLoadMap.put("Scope", false);
deviceLoadMap.put("IL-Turret", false);
deviceLoadMap.put("ObjectiveTurret", false);
deviceLoadMap.put("FocusDrive", false);
deviceLoadMap.put("SidePort", false);
deviceLoadMap.put("IL-Shutter", false);
deviceLoadMap.put("TL-Shutter", false);
deviceLoadMap.put("Transmitted Light", false);
deviceLoadMap.put("Adaptive Focus Control", false);
deviceLoadMap.put("Vertical", false);
/** ********** Devices ********** **/
try {
// Loading device COM1
mmc.loadDevice("COM1", "SerialManager", "COM1");
deviceLoadMap.put("COM1", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("COM1", false);
gui.logMessage("Exception loading 'COM1':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device COM2
mmc.loadDevice("COM2", "SerialManager", "COM2");
deviceLoadMap.put("COM2", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("COM2", false);
gui.logMessage("Exception loading 'COM2':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device COM10
mmc.loadDevice("COM10", "SerialManager", "COM10");
deviceLoadMap.put("COM10", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("COM10", false);
gui.logMessage("Exception loading 'COM10':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device COM12
mmc.loadDevice("COM12", "SerialManager", "COM12");
deviceLoadMap.put("COM12", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("COM12", false);
gui.logMessage("Exception loading 'COM12':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device COM13
mmc.loadDevice("COM13", "SerialManager", "COM13");
deviceLoadMap.put("COM13", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("COM13", false);
gui.logMessage("Exception loading 'COM13':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device COM14
mmc.loadDevice("COM14", "SerialManager", "COM14");
deviceLoadMap.put("COM14", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("COM14", false);
gui.logMessage("Exception loading 'COM14':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device Horizontal
mmc.loadDevice("Horizontal", "Andor", "Andor");
deviceLoadMap.put("Horizontal", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("Horizontal", false);
gui.logMessage("Exception loading 'Horizontal':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device MicroDrive XY Stage
mmc.loadDevice("MicroDrive XY Stage", "MCL_MicroDrive", "MicroDrive XY Stage");
deviceLoadMap.put("MicroDrive XY Stage", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("MicroDrive XY Stage", false);
gui.logMessage("Exception loading 'MicroDrive XY Stage':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device MCL NanoDrive Z Stage
mmc.loadDevice("MCL NanoDrive Z Stage", "MCL_NanoDrive", "MCL NanoDrive Z Stage");
deviceLoadMap.put("MCL NanoDrive Z Stage", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("MCL NanoDrive Z Stage", false);
gui.logMessage("Exception loading 'MCL NanoDrive Z Stage':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device MCL NanoDrive XY Stage
mmc.loadDevice("MCL NanoDrive XY Stage", "MCL_NanoDrive", "MCL NanoDrive XY Stage");
deviceLoadMap.put("MCL NanoDrive XY Stage", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("MCL NanoDrive XY Stage", false);
gui.logMessage("Exception loading 'MCL NanoDrive XY Stage':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device Spectra
mmc.loadDevice("Spectra", "LumencorSpectra", "Spectra");
deviceLoadMap.put("Spectra", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("Spectra", false);
gui.logMessage("Exception loading 'Spectra':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device Multi Camera
mmc.loadDevice("Multi Camera", "Utilities", "Multi Camera");
deviceLoadMap.put("Multi Camera", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("Multi Camera", false);
gui.logMessage("Exception loading 'Multi Camera':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device LudlController
mmc.loadDevice("LudlController", "Ludl", "LudlController");
deviceLoadMap.put("LudlController", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("LudlController", false);
gui.logMessage("Exception loading 'LudlController':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device LudlWheel Horizontal
mmc.loadDevice("LudlWheel Horizontal", "Ludl", "LudlWheel");
deviceLoadMap.put("LudlWheel Horizontal", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("LudlWheel Horizontal", false);
gui.logMessage("Exception loading 'LudlWheel Horizontal':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device LudlWheel Vertical
mmc.loadDevice("LudlWheel Vertical", "Ludl", "LudlWheel");
deviceLoadMap.put("LudlWheel Vertical", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("LudlWheel Vertical", false);
gui.logMessage("Exception loading 'LudlWheel Vertical':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device LMM5-Hub
mmc.loadDevice("LMM5-Hub", "SpectralLMM5", "LMM5-Hub");
deviceLoadMap.put("LMM5-Hub", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("LMM5-Hub", false);
gui.logMessage("Exception loading 'LMM5-Hub':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device LMM5-Shutter
mmc.loadDevice("LMM5-Shutter", "SpectralLMM5", "LMM5-Shutter");
deviceLoadMap.put("LMM5-Shutter", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("LMM5-Shutter", false);
gui.logMessage("Exception loading 'LMM5-Shutter':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device Scope
mmc.loadDevice("Scope", "LeicaDMI", "Scope");
deviceLoadMap.put("Scope", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("Scope", false);
gui.logMessage("Exception loading 'Scope':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device IL-Turret
mmc.loadDevice("IL-Turret", "LeicaDMI", "IL-Turret");
deviceLoadMap.put("IL-Turret", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("IL-Turret", false);
gui.logMessage("Exception loading 'IL-Turret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device ObjectiveTurret
mmc.loadDevice("ObjectiveTurret", "LeicaDMI", "ObjectiveTurret");
deviceLoadMap.put("ObjectiveTurret", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("ObjectiveTurret", false);
gui.logMessage("Exception loading 'ObjectiveTurret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device FocusDrive
mmc.loadDevice("FocusDrive", "LeicaDMI", "FocusDrive");
deviceLoadMap.put("FocusDrive", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("FocusDrive", false);
gui.logMessage("Exception loading 'FocusDrive':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device SidePort
mmc.loadDevice("SidePort", "LeicaDMI", "SidePort");
deviceLoadMap.put("SidePort", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("SidePort", false);
gui.logMessage("Exception loading 'SidePort':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device IL-Shutter
mmc.loadDevice("IL-Shutter", "LeicaDMI", "IL-Shutter");
deviceLoadMap.put("IL-Shutter", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("IL-Shutter", false);
gui.logMessage("Exception loading 'IL-Shutter':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device TL-Shutter
mmc.loadDevice("TL-Shutter", "LeicaDMI", "TL-Shutter");
deviceLoadMap.put("TL-Shutter", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("TL-Shutter", false);
gui.logMessage("Exception loading 'TL-Shutter':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device Transmitted Light
mmc.loadDevice("Transmitted Light", "LeicaDMI", "Transmitted Light");
deviceLoadMap.put("Transmitted Light", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("Transmitted Light", false);
gui.logMessage("Exception loading 'Transmitted Light':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device Adaptive Focus Control
mmc.loadDevice("Adaptive Focus Control", "LeicaDMI", "Adaptive Focus Control");
deviceLoadMap.put("Adaptive Focus Control", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("Adaptive Focus Control", false);
gui.logMessage("Exception loading 'Adaptive Focus Control':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Loading device Vertical
mmc.loadDevice("Vertical", "Andor", "Andor");
deviceLoadMap.put("Vertical", true);
} catch (java.lang.Exception ex) {
deviceLoadMap.put("Vertical", false);
gui.logMessage("Exception loading 'Vertical':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
/** ********** Pre-init settings for devices ********** **/
try {
// Setting property AnswerTimeout
if (deviceLoadMap.containsKey("COM1") &&
deviceLoadMap.get("COM1")) {
mmc.setProperty("COM1", "AnswerTimeout", "500.0000");
} else {
gui.logMessage("Skipping setting property 'AnswerTimeout' on device 'COM1'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM1' 'AnswerTimeout':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property BaudRate
if (deviceLoadMap.containsKey("COM1") &&
deviceLoadMap.get("COM1")) {
mmc.setProperty("COM1", "BaudRate", "19200");
} else {
gui.logMessage("Skipping setting property 'BaudRate' on device 'COM1'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM1' 'BaudRate':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property DelayBetweenCharsMs
if (deviceLoadMap.containsKey("COM1") &&
deviceLoadMap.get("COM1")) {
mmc.setProperty("COM1", "DelayBetweenCharsMs", "0.0000");
} else {
gui.logMessage("Skipping setting property 'DelayBetweenCharsMs' on device 'COM1'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM1' 'DelayBetweenCharsMs':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Handshaking
if (deviceLoadMap.containsKey("COM1") &&
deviceLoadMap.get("COM1")) {
mmc.setProperty("COM1", "Handshaking", "Off");
} else {
gui.logMessage("Skipping setting property 'Handshaking' on device 'COM1'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM1' 'Handshaking':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Parity
if (deviceLoadMap.containsKey("COM1") &&
deviceLoadMap.get("COM1")) {
mmc.setProperty("COM1", "Parity", "None");
} else {
gui.logMessage("Skipping setting property 'Parity' on device 'COM1'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM1' 'Parity':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property StopBits
if (deviceLoadMap.containsKey("COM1") &&
deviceLoadMap.get("COM1")) {
mmc.setProperty("COM1", "StopBits", "1");
} else {
gui.logMessage("Skipping setting property 'StopBits' on device 'COM1'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM1' 'StopBits':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Verbose
if (deviceLoadMap.containsKey("COM1") &&
deviceLoadMap.get("COM1")) {
mmc.setProperty("COM1", "Verbose", "1");
} else {
gui.logMessage("Skipping setting property 'Verbose' on device 'COM1'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM1' 'Verbose':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property AnswerTimeout
if (deviceLoadMap.containsKey("COM2") &&
deviceLoadMap.get("COM2")) {
mmc.setProperty("COM2", "AnswerTimeout", "500.0000");
} else {
gui.logMessage("Skipping setting property 'AnswerTimeout' on device 'COM2'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM2' 'AnswerTimeout':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property BaudRate
if (deviceLoadMap.containsKey("COM2") &&
deviceLoadMap.get("COM2")) {
mmc.setProperty("COM2", "BaudRate", "19200");
} else {
gui.logMessage("Skipping setting property 'BaudRate' on device 'COM2'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM2' 'BaudRate':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property DelayBetweenCharsMs
if (deviceLoadMap.containsKey("COM2") &&
deviceLoadMap.get("COM2")) {
mmc.setProperty("COM2", "DelayBetweenCharsMs", "0.0000");
} else {
gui.logMessage("Skipping setting property 'DelayBetweenCharsMs' on device 'COM2'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM2' 'DelayBetweenCharsMs':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Handshaking
if (deviceLoadMap.containsKey("COM2") &&
deviceLoadMap.get("COM2")) {
mmc.setProperty("COM2", "Handshaking", "Off");
} else {
gui.logMessage("Skipping setting property 'Handshaking' on device 'COM2'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM2' 'Handshaking':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Parity
if (deviceLoadMap.containsKey("COM2") &&
deviceLoadMap.get("COM2")) {
mmc.setProperty("COM2", "Parity", "None");
} else {
gui.logMessage("Skipping setting property 'Parity' on device 'COM2'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM2' 'Parity':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property StopBits
if (deviceLoadMap.containsKey("COM2") &&
deviceLoadMap.get("COM2")) {
mmc.setProperty("COM2", "StopBits", "1");
} else {
gui.logMessage("Skipping setting property 'StopBits' on device 'COM2'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM2' 'StopBits':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Verbose
if (deviceLoadMap.containsKey("COM2") &&
deviceLoadMap.get("COM2")) {
mmc.setProperty("COM2", "Verbose", "1");
} else {
gui.logMessage("Skipping setting property 'Verbose' on device 'COM2'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM2' 'Verbose':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property AnswerTimeout
if (deviceLoadMap.containsKey("COM10") &&
deviceLoadMap.get("COM10")) {
mmc.setProperty("COM10", "AnswerTimeout", "500.0000");
} else {
gui.logMessage("Skipping setting property 'AnswerTimeout' on device 'COM10'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM10' 'AnswerTimeout':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property BaudRate
if (deviceLoadMap.containsKey("COM10") &&
deviceLoadMap.get("COM10")) {
mmc.setProperty("COM10", "BaudRate", "9600");
} else {
gui.logMessage("Skipping setting property 'BaudRate' on device 'COM10'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM10' 'BaudRate':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property DelayBetweenCharsMs
if (deviceLoadMap.containsKey("COM10") &&
deviceLoadMap.get("COM10")) {
mmc.setProperty("COM10", "DelayBetweenCharsMs", "0.0000");
} else {
gui.logMessage("Skipping setting property 'DelayBetweenCharsMs' on device 'COM10'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM10' 'DelayBetweenCharsMs':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Handshaking
if (deviceLoadMap.containsKey("COM10") &&
deviceLoadMap.get("COM10")) {
mmc.setProperty("COM10", "Handshaking", "Off");
} else {
gui.logMessage("Skipping setting property 'Handshaking' on device 'COM10'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM10' 'Handshaking':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Parity
if (deviceLoadMap.containsKey("COM10") &&
deviceLoadMap.get("COM10")) {
mmc.setProperty("COM10", "Parity", "None");
} else {
gui.logMessage("Skipping setting property 'Parity' on device 'COM10'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM10' 'Parity':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property StopBits
if (deviceLoadMap.containsKey("COM10") &&
deviceLoadMap.get("COM10")) {
mmc.setProperty("COM10", "StopBits", "1");
} else {
gui.logMessage("Skipping setting property 'StopBits' on device 'COM10'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM10' 'StopBits':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Verbose
if (deviceLoadMap.containsKey("COM10") &&
deviceLoadMap.get("COM10")) {
mmc.setProperty("COM10", "Verbose", "1");
} else {
gui.logMessage("Skipping setting property 'Verbose' on device 'COM10'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM10' 'Verbose':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property AnswerTimeout
if (deviceLoadMap.containsKey("COM12") &&
deviceLoadMap.get("COM12")) {
mmc.setProperty("COM12", "AnswerTimeout", "500.0000");
} else {
gui.logMessage("Skipping setting property 'AnswerTimeout' on device 'COM12'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM12' 'AnswerTimeout':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property BaudRate
if (deviceLoadMap.containsKey("COM12") &&
deviceLoadMap.get("COM12")) {
mmc.setProperty("COM12", "BaudRate", "9600");
} else {
gui.logMessage("Skipping setting property 'BaudRate' on device 'COM12'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM12' 'BaudRate':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property DelayBetweenCharsMs
if (deviceLoadMap.containsKey("COM12") &&
deviceLoadMap.get("COM12")) {
mmc.setProperty("COM12", "DelayBetweenCharsMs", "0.0000");
} else {
gui.logMessage("Skipping setting property 'DelayBetweenCharsMs' on device 'COM12'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM12' 'DelayBetweenCharsMs':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Handshaking
if (deviceLoadMap.containsKey("COM12") &&
deviceLoadMap.get("COM12")) {
mmc.setProperty("COM12", "Handshaking", "Off");
} else {
gui.logMessage("Skipping setting property 'Handshaking' on device 'COM12'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM12' 'Handshaking':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Parity
if (deviceLoadMap.containsKey("COM12") &&
deviceLoadMap.get("COM12")) {
mmc.setProperty("COM12", "Parity", "None");
} else {
gui.logMessage("Skipping setting property 'Parity' on device 'COM12'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM12' 'Parity':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property StopBits
if (deviceLoadMap.containsKey("COM12") &&
deviceLoadMap.get("COM12")) {
mmc.setProperty("COM12", "StopBits", "1");
} else {
gui.logMessage("Skipping setting property 'StopBits' on device 'COM12'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM12' 'StopBits':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Verbose
if (deviceLoadMap.containsKey("COM12") &&
deviceLoadMap.get("COM12")) {
mmc.setProperty("COM12", "Verbose", "1");
} else {
gui.logMessage("Skipping setting property 'Verbose' on device 'COM12'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM12' 'Verbose':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property AnswerTimeout
if (deviceLoadMap.containsKey("COM13") &&
deviceLoadMap.get("COM13")) {
mmc.setProperty("COM13", "AnswerTimeout", "500.0000");
} else {
gui.logMessage("Skipping setting property 'AnswerTimeout' on device 'COM13'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM13' 'AnswerTimeout':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property BaudRate
if (deviceLoadMap.containsKey("COM13") &&
deviceLoadMap.get("COM13")) {
mmc.setProperty("COM13", "BaudRate", "9600");
} else {
gui.logMessage("Skipping setting property 'BaudRate' on device 'COM13'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM13' 'BaudRate':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property DelayBetweenCharsMs
if (deviceLoadMap.containsKey("COM13") &&
deviceLoadMap.get("COM13")) {
mmc.setProperty("COM13", "DelayBetweenCharsMs", "0.0000");
} else {
gui.logMessage("Skipping setting property 'DelayBetweenCharsMs' on device 'COM13'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM13' 'DelayBetweenCharsMs':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Handshaking
if (deviceLoadMap.containsKey("COM13") &&
deviceLoadMap.get("COM13")) {
mmc.setProperty("COM13", "Handshaking", "Off");
} else {
gui.logMessage("Skipping setting property 'Handshaking' on device 'COM13'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM13' 'Handshaking':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Parity
if (deviceLoadMap.containsKey("COM13") &&
deviceLoadMap.get("COM13")) {
mmc.setProperty("COM13", "Parity", "None");
} else {
gui.logMessage("Skipping setting property 'Parity' on device 'COM13'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM13' 'Parity':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property StopBits
if (deviceLoadMap.containsKey("COM13") &&
deviceLoadMap.get("COM13")) {
mmc.setProperty("COM13", "StopBits", "1");
} else {
gui.logMessage("Skipping setting property 'StopBits' on device 'COM13'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM13' 'StopBits':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Verbose
if (deviceLoadMap.containsKey("COM13") &&
deviceLoadMap.get("COM13")) {
mmc.setProperty("COM13", "Verbose", "1");
} else {
gui.logMessage("Skipping setting property 'Verbose' on device 'COM13'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM13' 'Verbose':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property AnswerTimeout
if (deviceLoadMap.containsKey("COM14") &&
deviceLoadMap.get("COM14")) {
mmc.setProperty("COM14", "AnswerTimeout", "500.0000");
} else {
gui.logMessage("Skipping setting property 'AnswerTimeout' on device 'COM14'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM14' 'AnswerTimeout':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property BaudRate
if (deviceLoadMap.containsKey("COM14") &&
deviceLoadMap.get("COM14")) {
mmc.setProperty("COM14", "BaudRate", "9600");
} else {
gui.logMessage("Skipping setting property 'BaudRate' on device 'COM14'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM14' 'BaudRate':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property DelayBetweenCharsMs
if (deviceLoadMap.containsKey("COM14") &&
deviceLoadMap.get("COM14")) {
mmc.setProperty("COM14", "DelayBetweenCharsMs", "0.0000");
} else {
gui.logMessage("Skipping setting property 'DelayBetweenCharsMs' on device 'COM14'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM14' 'DelayBetweenCharsMs':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Handshaking
if (deviceLoadMap.containsKey("COM14") &&
deviceLoadMap.get("COM14")) {
mmc.setProperty("COM14", "Handshaking", "Off");
} else {
gui.logMessage("Skipping setting property 'Handshaking' on device 'COM14'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM14' 'Handshaking':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Parity
if (deviceLoadMap.containsKey("COM14") &&
deviceLoadMap.get("COM14")) {
mmc.setProperty("COM14", "Parity", "None");
} else {
gui.logMessage("Skipping setting property 'Parity' on device 'COM14'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM14' 'Parity':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property StopBits
if (deviceLoadMap.containsKey("COM14") &&
deviceLoadMap.get("COM14")) {
mmc.setProperty("COM14", "StopBits", "1");
} else {
gui.logMessage("Skipping setting property 'StopBits' on device 'COM14'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM14' 'StopBits':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Verbose
if (deviceLoadMap.containsKey("COM14") &&
deviceLoadMap.get("COM14")) {
mmc.setProperty("COM14", "Verbose", "1");
} else {
gui.logMessage("Skipping setting property 'Verbose' on device 'COM14'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'COM14' 'Verbose':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Camera
if (deviceLoadMap.containsKey("Horizontal") &&
deviceLoadMap.get("Horizontal")) {
mmc.setProperty("Horizontal", "Camera", "| iXon Ultra | DU897_BV | 7324 |");
} else {
gui.logMessage("Skipping setting property 'Camera' on device 'Horizontal'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'Horizontal' 'Camera':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Port
if (deviceLoadMap.containsKey("Spectra") &&
deviceLoadMap.get("Spectra")) {
mmc.setProperty("Spectra", "Port", "COM14");
} else {
gui.logMessage("Skipping setting property 'Port' on device 'Spectra'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'Spectra' 'Port':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Port
if (deviceLoadMap.containsKey("LudlController") &&
deviceLoadMap.get("LudlController")) {
mmc.setProperty("LudlController", "Port", "COM10");
} else {
gui.logMessage("Skipping setting property 'Port' on device 'LudlController'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'LudlController' 'Port':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Fiter Positions
if (deviceLoadMap.containsKey("LudlWheel Horizontal") &&
deviceLoadMap.get("LudlWheel Horizontal")) {
mmc.setProperty("LudlWheel Horizontal", "Fiter Positions", "6");
} else {
gui.logMessage("Skipping setting property 'Fiter Positions' on device 'LudlWheel Horizontal'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'LudlWheel Horizontal' 'Fiter Positions':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Home-Timeout-(s)
if (deviceLoadMap.containsKey("LudlWheel Horizontal") &&
deviceLoadMap.get("LudlWheel Horizontal")) {
mmc.setProperty("LudlWheel Horizontal", "Home-Timeout-(s)", "10.0000");
} else {
gui.logMessage("Skipping setting property 'Home-Timeout-(s)' on device 'LudlWheel Horizontal'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'LudlWheel Horizontal' 'Home-Timeout-(s)':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property LudlDeviceNumberWheel
if (deviceLoadMap.containsKey("LudlWheel Horizontal") &&
deviceLoadMap.get("LudlWheel Horizontal")) {
mmc.setProperty("LudlWheel Horizontal", "LudlDeviceNumberWheel", "1");
} else {
gui.logMessage("Skipping setting property 'LudlDeviceNumberWheel' on device 'LudlWheel Horizontal'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'LudlWheel Horizontal' 'LudlDeviceNumberWheel':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property LudlWheelNumber
if (deviceLoadMap.containsKey("LudlWheel Horizontal") &&
deviceLoadMap.get("LudlWheel Horizontal")) {
mmc.setProperty("LudlWheel Horizontal", "LudlWheelNumber", "1");
} else {
gui.logMessage("Skipping setting property 'LudlWheelNumber' on device 'LudlWheel Horizontal'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'LudlWheel Horizontal' 'LudlWheelNumber':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Fiter Positions
if (deviceLoadMap.containsKey("LudlWheel Vertical") &&
deviceLoadMap.get("LudlWheel Vertical")) {
mmc.setProperty("LudlWheel Vertical", "Fiter Positions", "6");
} else {
gui.logMessage("Skipping setting property 'Fiter Positions' on device 'LudlWheel Vertical'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'LudlWheel Vertical' 'Fiter Positions':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Home-Timeout-(s)
if (deviceLoadMap.containsKey("LudlWheel Vertical") &&
deviceLoadMap.get("LudlWheel Vertical")) {
mmc.setProperty("LudlWheel Vertical", "Home-Timeout-(s)", "10.0000");
} else {
gui.logMessage("Skipping setting property 'Home-Timeout-(s)' on device 'LudlWheel Vertical'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'LudlWheel Vertical' 'Home-Timeout-(s)':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property LudlDeviceNumberWheel
if (deviceLoadMap.containsKey("LudlWheel Vertical") &&
deviceLoadMap.get("LudlWheel Vertical")) {
mmc.setProperty("LudlWheel Vertical", "LudlDeviceNumberWheel", "1");
} else {
gui.logMessage("Skipping setting property 'LudlDeviceNumberWheel' on device 'LudlWheel Vertical'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'LudlWheel Vertical' 'LudlDeviceNumberWheel':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property LudlWheelNumber
if (deviceLoadMap.containsKey("LudlWheel Vertical") &&
deviceLoadMap.get("LudlWheel Vertical")) {
mmc.setProperty("LudlWheel Vertical", "LudlWheelNumber", "2");
} else {
gui.logMessage("Skipping setting property 'LudlWheelNumber' on device 'LudlWheel Vertical'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'LudlWheel Vertical' 'LudlWheelNumber':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Port
if (deviceLoadMap.containsKey("LMM5-Hub") &&
deviceLoadMap.get("LMM5-Hub")) {
mmc.setProperty("LMM5-Hub", "Port", "COM1");
} else {
gui.logMessage("Skipping setting property 'Port' on device 'LMM5-Hub'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'LMM5-Hub' 'Port':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property AnswerTimeOut
if (deviceLoadMap.containsKey("Scope") &&
deviceLoadMap.get("Scope")) {
mmc.setProperty("Scope", "AnswerTimeOut", "250.0000");
} else {
gui.logMessage("Skipping setting property 'AnswerTimeOut' on device 'Scope'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'Scope' 'AnswerTimeOut':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Port
if (deviceLoadMap.containsKey("Scope") &&
deviceLoadMap.get("Scope")) {
mmc.setProperty("Scope", "Port", "COM2");
} else {
gui.logMessage("Skipping setting property 'Port' on device 'Scope'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'Scope' 'Port':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Camera
if (deviceLoadMap.containsKey("Vertical") &&
deviceLoadMap.get("Vertical")) {
mmc.setProperty("Vertical", "Camera", "| iXon Ultra | DU897_BV | 7415 |");
} else {
gui.logMessage("Skipping setting property 'Camera' on device 'Vertical'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'Vertical' 'Camera':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Camera
if (deviceLoadMap.containsKey("Core") &&
deviceLoadMap.get("Core")) {
mmc.setProperty("Core", "Camera", "Horizontal");
} else {
gui.logMessage("Skipping setting property 'Camera' on device 'Core'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'Core' 'Camera':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Shutter
if (deviceLoadMap.containsKey("Core") &&
deviceLoadMap.get("Core")) {
mmc.setProperty("Core", "Shutter", "LMM5-Shutter");
} else {
gui.logMessage("Skipping setting property 'Shutter' on device 'Core'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'Core' 'Shutter':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property Focus
if (deviceLoadMap.containsKey("Core") &&
deviceLoadMap.get("Core")) {
mmc.setProperty("Core", "Focus", "FocusDrive");
} else {
gui.logMessage("Skipping setting property 'Focus' on device 'Core'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'Core' 'Focus':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting property AutoShutter
if (deviceLoadMap.containsKey("Core") &&
deviceLoadMap.get("Core")) {
mmc.setProperty("Core", "AutoShutter", "1");
} else {
gui.logMessage("Skipping setting property 'AutoShutter' on device 'Core'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting property: 'Core' 'AutoShutter':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
/** ********** Hub (parent) references ********** **/
try {
// Setting parent for IL-Turret
if (deviceLoadMap.containsKey("IL-Turret") &&
deviceLoadMap.get("IL-Turret")) {
mmc.setParentLabel("IL-Turret", "Scope");
} else {
gui.logMessage("Skipping setting parent 'Scope' of device 'IL-Turret'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting parent 'Scope' of device 'IL-Turret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting parent for ObjectiveTurret
if (deviceLoadMap.containsKey("ObjectiveTurret") &&
deviceLoadMap.get("ObjectiveTurret")) {
mmc.setParentLabel("ObjectiveTurret", "Scope");
} else {
gui.logMessage("Skipping setting parent 'Scope' of device 'ObjectiveTurret'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting parent 'Scope' of device 'ObjectiveTurret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting parent for FocusDrive
if (deviceLoadMap.containsKey("FocusDrive") &&
deviceLoadMap.get("FocusDrive")) {
mmc.setParentLabel("FocusDrive", "Scope");
} else {
gui.logMessage("Skipping setting parent 'Scope' of device 'FocusDrive'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting parent 'Scope' of device 'FocusDrive':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting parent for SidePort
if (deviceLoadMap.containsKey("SidePort") &&
deviceLoadMap.get("SidePort")) {
mmc.setParentLabel("SidePort", "Scope");
} else {
gui.logMessage("Skipping setting parent 'Scope' of device 'SidePort'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting parent 'Scope' of device 'SidePort':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting parent for IL-Shutter
if (deviceLoadMap.containsKey("IL-Shutter") &&
deviceLoadMap.get("IL-Shutter")) {
mmc.setParentLabel("IL-Shutter", "Scope");
} else {
gui.logMessage("Skipping setting parent 'Scope' of device 'IL-Shutter'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting parent 'Scope' of device 'IL-Shutter':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting parent for TL-Shutter
if (deviceLoadMap.containsKey("TL-Shutter") &&
deviceLoadMap.get("TL-Shutter")) {
mmc.setParentLabel("TL-Shutter", "Scope");
} else {
gui.logMessage("Skipping setting parent 'Scope' of device 'TL-Shutter'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting parent 'Scope' of device 'TL-Shutter':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting parent for Transmitted Light
if (deviceLoadMap.containsKey("Transmitted Light") &&
deviceLoadMap.get("Transmitted Light")) {
mmc.setParentLabel("Transmitted Light", "Scope");
} else {
gui.logMessage("Skipping setting parent 'Scope' of device 'Transmitted Light'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting parent 'Scope' of device 'Transmitted Light':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting parent for Adaptive Focus Control
if (deviceLoadMap.containsKey("Adaptive Focus Control") &&
deviceLoadMap.get("Adaptive Focus Control")) {
mmc.setParentLabel("Adaptive Focus Control", "Scope");
} else {
gui.logMessage("Skipping setting parent 'Scope' of device 'Adaptive Focus Control'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting parent 'Scope' of device 'Adaptive Focus Control':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
/** ********** Device init map ********** **/
Hashtable deviceInitMap = new Hashtable();
deviceInitMap.put("COM1", false);
deviceInitMap.put("COM2", false);
deviceInitMap.put("COM10", false);
deviceInitMap.put("COM12", false);
deviceInitMap.put("COM13", false);
deviceInitMap.put("COM14", false);
deviceInitMap.put("Horizontal", false);
deviceInitMap.put("MicroDrive XY Stage", false);
deviceInitMap.put("MCL NanoDrive Z Stage", false);
deviceInitMap.put("MCL NanoDrive XY Stage", false);
deviceInitMap.put("Spectra", false);
deviceInitMap.put("Multi Camera", false);
deviceInitMap.put("LudlController", false);
deviceInitMap.put("LudlWheel Horizontal", false);
deviceInitMap.put("LudlWheel Vertical", false);
deviceInitMap.put("LMM5-Hub", false);
deviceInitMap.put("LMM5-Shutter", false);
deviceInitMap.put("Scope", false);
deviceInitMap.put("IL-Turret", false);
deviceInitMap.put("ObjectiveTurret", false);
deviceInitMap.put("FocusDrive", false);
deviceInitMap.put("SidePort", false);
deviceInitMap.put("IL-Shutter", false);
deviceInitMap.put("TL-Shutter", false);
deviceInitMap.put("Transmitted Light", false);
deviceInitMap.put("Adaptive Focus Control", false);
deviceInitMap.put("Vertical", false);
/** ********** Initialize Devices ********** **/
try {
// Initializing device COM1
if (deviceLoadMap.containsKey("COM1") &&
deviceLoadMap.get("COM1")) {
mmc.initializeDevice("COM1");
deviceInitMap.put("COM1", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'COM1'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("COM1");
deviceInitMap.put("COM1", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'COM1'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device COM2
if (deviceLoadMap.containsKey("COM2") &&
deviceLoadMap.get("COM2")) {
mmc.initializeDevice("COM2");
deviceInitMap.put("COM2", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'COM2'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("COM2");
deviceInitMap.put("COM2", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'COM2'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device COM10
if (deviceLoadMap.containsKey("COM10") &&
deviceLoadMap.get("COM10")) {
mmc.initializeDevice("COM10");
deviceInitMap.put("COM10", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'COM10'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("COM10");
deviceInitMap.put("COM10", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'COM10'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device COM12
if (deviceLoadMap.containsKey("COM12") &&
deviceLoadMap.get("COM12")) {
mmc.initializeDevice("COM12");
deviceInitMap.put("COM12", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'COM12'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("COM12");
deviceInitMap.put("COM12", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'COM12'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device COM13
if (deviceLoadMap.containsKey("COM13") &&
deviceLoadMap.get("COM13")) {
mmc.initializeDevice("COM13");
deviceInitMap.put("COM13", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'COM13'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("COM13");
deviceInitMap.put("COM13", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'COM13'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device COM14
if (deviceLoadMap.containsKey("COM14") &&
deviceLoadMap.get("COM14")) {
mmc.initializeDevice("COM14");
deviceInitMap.put("COM14", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'COM14'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("COM14");
deviceInitMap.put("COM14", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'COM14'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device Horizontal
if (deviceLoadMap.containsKey("Horizontal") &&
deviceLoadMap.get("Horizontal")) {
mmc.initializeDevice("Horizontal");
deviceInitMap.put("Horizontal", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'Horizontal'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("Horizontal");
deviceInitMap.put("Horizontal", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'Horizontal'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device MicroDrive XY Stage
if (deviceLoadMap.containsKey("MicroDrive XY Stage") &&
deviceLoadMap.get("MicroDrive XY Stage")) {
mmc.initializeDevice("MicroDrive XY Stage");
deviceInitMap.put("MicroDrive XY Stage", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'MicroDrive XY Stage'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("MicroDrive XY Stage");
deviceInitMap.put("MicroDrive XY Stage", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'MicroDrive XY Stage'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device MCL NanoDrive Z Stage
if (deviceLoadMap.containsKey("MCL NanoDrive Z Stage") &&
deviceLoadMap.get("MCL NanoDrive Z Stage")) {
mmc.initializeDevice("MCL NanoDrive Z Stage");
deviceInitMap.put("MCL NanoDrive Z Stage", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'MCL NanoDrive Z Stage'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("MCL NanoDrive Z Stage");
deviceInitMap.put("MCL NanoDrive Z Stage", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'MCL NanoDrive Z Stage'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device MCL NanoDrive XY Stage
if (deviceLoadMap.containsKey("MCL NanoDrive XY Stage") &&
deviceLoadMap.get("MCL NanoDrive XY Stage")) {
mmc.initializeDevice("MCL NanoDrive XY Stage");
deviceInitMap.put("MCL NanoDrive XY Stage", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'MCL NanoDrive XY Stage'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("MCL NanoDrive XY Stage");
deviceInitMap.put("MCL NanoDrive XY Stage", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'MCL NanoDrive XY Stage'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device Spectra
if (deviceLoadMap.containsKey("Spectra") &&
deviceLoadMap.get("Spectra")) {
mmc.initializeDevice("Spectra");
deviceInitMap.put("Spectra", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'Spectra'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("Spectra");
deviceInitMap.put("Spectra", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'Spectra'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device Multi Camera
if (deviceLoadMap.containsKey("Multi Camera") &&
deviceLoadMap.get("Multi Camera")) {
mmc.initializeDevice("Multi Camera");
deviceInitMap.put("Multi Camera", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'Multi Camera'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("Multi Camera");
deviceInitMap.put("Multi Camera", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'Multi Camera'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device LudlController
if (deviceLoadMap.containsKey("LudlController") &&
deviceLoadMap.get("LudlController")) {
mmc.initializeDevice("LudlController");
deviceInitMap.put("LudlController", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'LudlController'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("LudlController");
deviceInitMap.put("LudlController", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'LudlController'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device LudlWheel Horizontal
if (deviceLoadMap.containsKey("LudlWheel Horizontal") &&
deviceLoadMap.get("LudlWheel Horizontal")) {
mmc.initializeDevice("LudlWheel Horizontal");
deviceInitMap.put("LudlWheel Horizontal", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'LudlWheel Horizontal'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("LudlWheel Horizontal");
deviceInitMap.put("LudlWheel Horizontal", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'LudlWheel Horizontal'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device LudlWheel Vertical
if (deviceLoadMap.containsKey("LudlWheel Vertical") &&
deviceLoadMap.get("LudlWheel Vertical")) {
mmc.initializeDevice("LudlWheel Vertical");
deviceInitMap.put("LudlWheel Vertical", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'LudlWheel Vertical'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("LudlWheel Vertical");
deviceInitMap.put("LudlWheel Vertical", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'LudlWheel Vertical'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device LMM5-Hub
if (deviceLoadMap.containsKey("LMM5-Hub") &&
deviceLoadMap.get("LMM5-Hub")) {
mmc.initializeDevice("LMM5-Hub");
deviceInitMap.put("LMM5-Hub", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'LMM5-Hub'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("LMM5-Hub");
deviceInitMap.put("LMM5-Hub", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'LMM5-Hub'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device LMM5-Shutter
if (deviceLoadMap.containsKey("LMM5-Shutter") &&
deviceLoadMap.get("LMM5-Shutter")) {
mmc.initializeDevice("LMM5-Shutter");
deviceInitMap.put("LMM5-Shutter", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'LMM5-Shutter'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("LMM5-Shutter");
deviceInitMap.put("LMM5-Shutter", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'LMM5-Shutter'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device Scope
if (deviceLoadMap.containsKey("Scope") &&
deviceLoadMap.get("Scope")) {
mmc.initializeDevice("Scope");
deviceInitMap.put("Scope", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'Scope'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("Scope");
deviceInitMap.put("Scope", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'Scope'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device IL-Turret
if (deviceLoadMap.containsKey("IL-Turret") &&
deviceLoadMap.get("IL-Turret")) {
mmc.initializeDevice("IL-Turret");
deviceInitMap.put("IL-Turret", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'IL-Turret'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("IL-Turret");
deviceInitMap.put("IL-Turret", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'IL-Turret'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device ObjectiveTurret
if (deviceLoadMap.containsKey("ObjectiveTurret") &&
deviceLoadMap.get("ObjectiveTurret")) {
mmc.initializeDevice("ObjectiveTurret");
deviceInitMap.put("ObjectiveTurret", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'ObjectiveTurret'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("ObjectiveTurret");
deviceInitMap.put("ObjectiveTurret", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'ObjectiveTurret'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device FocusDrive
if (deviceLoadMap.containsKey("FocusDrive") &&
deviceLoadMap.get("FocusDrive")) {
mmc.initializeDevice("FocusDrive");
deviceInitMap.put("FocusDrive", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'FocusDrive'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("FocusDrive");
deviceInitMap.put("FocusDrive", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'FocusDrive'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device SidePort
if (deviceLoadMap.containsKey("SidePort") &&
deviceLoadMap.get("SidePort")) {
mmc.initializeDevice("SidePort");
deviceInitMap.put("SidePort", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'SidePort'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("SidePort");
deviceInitMap.put("SidePort", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'SidePort'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device IL-Shutter
if (deviceLoadMap.containsKey("IL-Shutter") &&
deviceLoadMap.get("IL-Shutter")) {
mmc.initializeDevice("IL-Shutter");
deviceInitMap.put("IL-Shutter", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'IL-Shutter'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("IL-Shutter");
deviceInitMap.put("IL-Shutter", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'IL-Shutter'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device TL-Shutter
if (deviceLoadMap.containsKey("TL-Shutter") &&
deviceLoadMap.get("TL-Shutter")) {
mmc.initializeDevice("TL-Shutter");
deviceInitMap.put("TL-Shutter", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'TL-Shutter'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("TL-Shutter");
deviceInitMap.put("TL-Shutter", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'TL-Shutter'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device Transmitted Light
if (deviceLoadMap.containsKey("Transmitted Light") &&
deviceLoadMap.get("Transmitted Light")) {
mmc.initializeDevice("Transmitted Light");
deviceInitMap.put("Transmitted Light", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'Transmitted Light'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("Transmitted Light");
deviceInitMap.put("Transmitted Light", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'Transmitted Light'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device Adaptive Focus Control
if (deviceLoadMap.containsKey("Adaptive Focus Control") &&
deviceLoadMap.get("Adaptive Focus Control")) {
mmc.initializeDevice("Adaptive Focus Control");
deviceInitMap.put("Adaptive Focus Control", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'Adaptive Focus Control'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("Adaptive Focus Control");
deviceInitMap.put("Adaptive Focus Control", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'Adaptive Focus Control'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
try {
// Initializing device Vertical
if (deviceLoadMap.containsKey("Vertical") &&
deviceLoadMap.get("Vertical")) {
mmc.initializeDevice("Vertical");
deviceInitMap.put("Vertical", true);
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception initializing device 'Vertical'");
gui.logMessage(ex.getMessage());
gui.logMessage("Unloading device...");
try {
mmc.unloadDevice("Vertical");
deviceInitMap.put("Vertical", false);
} catch (java.lang.Exception ex2) {
gui.logMessage("Exception unloading device 'Vertical'");
gui.logMessage(ex2.getMessage());
gui.logMessage("ignoring...");
}
}
/** ********** Labels ********** **/
try {
// Setting state label for LudlWheel Horizontal
if (deviceInitMap.containsKey("LudlWheel Horizontal") &&
deviceInitMap.get("LudlWheel Horizontal")) {
mmc.defineStateLabel("LudlWheel Horizontal", 5, "Block");
} else {
gui.logMessage("Skipping setting state label 'Block' of device 'LudlWheel Horizontal'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label 'Block' of device 'LudlWheel Horizontal':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for LudlWheel Horizontal
if (deviceInitMap.containsKey("LudlWheel Horizontal") &&
deviceInitMap.get("LudlWheel Horizontal")) {
mmc.defineStateLabel("LudlWheel Horizontal", 4, "700/75");
} else {
gui.logMessage("Skipping setting state label '700/75' of device 'LudlWheel Horizontal'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '700/75' of device 'LudlWheel Horizontal':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for LudlWheel Horizontal
if (deviceInitMap.containsKey("LudlWheel Horizontal") &&
deviceInitMap.get("LudlWheel Horizontal")) {
mmc.defineStateLabel("LudlWheel Horizontal", 3, "593/40");
} else {
gui.logMessage("Skipping setting state label '593/40' of device 'LudlWheel Horizontal'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '593/40' of device 'LudlWheel Horizontal':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for LudlWheel Horizontal
if (deviceInitMap.containsKey("LudlWheel Horizontal") &&
deviceInitMap.get("LudlWheel Horizontal")) {
mmc.defineStateLabel("LudlWheel Horizontal", 2, "525/60");
} else {
gui.logMessage("Skipping setting state label '525/60' of device 'LudlWheel Horizontal'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '525/60' of device 'LudlWheel Horizontal':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for LudlWheel Horizontal
if (deviceInitMap.containsKey("LudlWheel Horizontal") &&
deviceInitMap.get("LudlWheel Horizontal")) {
mmc.defineStateLabel("LudlWheel Horizontal", 1, "460/50");
} else {
gui.logMessage("Skipping setting state label '460/50' of device 'LudlWheel Horizontal'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '460/50' of device 'LudlWheel Horizontal':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for LudlWheel Horizontal
if (deviceInitMap.containsKey("LudlWheel Horizontal") &&
deviceInitMap.get("LudlWheel Horizontal")) {
mmc.defineStateLabel("LudlWheel Horizontal", 0, "Bright Field");
} else {
gui.logMessage("Skipping setting state label 'Bright Field' of device 'LudlWheel Horizontal'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label 'Bright Field' of device 'LudlWheel Horizontal':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for LudlWheel Vertical
if (deviceInitMap.containsKey("LudlWheel Vertical") &&
deviceInitMap.get("LudlWheel Vertical")) {
mmc.defineStateLabel("LudlWheel Vertical", 5, "Blocked");
} else {
gui.logMessage("Skipping setting state label 'Blocked' of device 'LudlWheel Vertical'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label 'Blocked' of device 'LudlWheel Vertical':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for LudlWheel Vertical
if (deviceInitMap.containsKey("LudlWheel Vertical") &&
deviceInitMap.get("LudlWheel Vertical")) {
mmc.defineStateLabel("LudlWheel Vertical", 4, "700/75");
} else {
gui.logMessage("Skipping setting state label '700/75' of device 'LudlWheel Vertical'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '700/75' of device 'LudlWheel Vertical':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for LudlWheel Vertical
if (deviceInitMap.containsKey("LudlWheel Vertical") &&
deviceInitMap.get("LudlWheel Vertical")) {
mmc.defineStateLabel("LudlWheel Vertical", 3, "593/40");
} else {
gui.logMessage("Skipping setting state label '593/40' of device 'LudlWheel Vertical'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '593/40' of device 'LudlWheel Vertical':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for LudlWheel Vertical
if (deviceInitMap.containsKey("LudlWheel Vertical") &&
deviceInitMap.get("LudlWheel Vertical")) {
mmc.defineStateLabel("LudlWheel Vertical", 2, "525/50");
} else {
gui.logMessage("Skipping setting state label '525/50' of device 'LudlWheel Vertical'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '525/50' of device 'LudlWheel Vertical':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for LudlWheel Vertical
if (deviceInitMap.containsKey("LudlWheel Vertical") &&
deviceInitMap.get("LudlWheel Vertical")) {
mmc.defineStateLabel("LudlWheel Vertical", 1, "460/50");
} else {
gui.logMessage("Skipping setting state label '460/50' of device 'LudlWheel Vertical'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '460/50' of device 'LudlWheel Vertical':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for LudlWheel Vertical
if (deviceInitMap.containsKey("LudlWheel Vertical") &&
deviceInitMap.get("LudlWheel Vertical")) {
mmc.defineStateLabel("LudlWheel Vertical", 0, "Bright Field");
} else {
gui.logMessage("Skipping setting state label 'Bright Field' of device 'LudlWheel Vertical'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label 'Bright Field' of device 'LudlWheel Vertical':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for IL-Turret
if (deviceInitMap.containsKey("IL-Turret") &&
deviceInitMap.get("IL-Turret")) {
mmc.defineStateLabel("IL-Turret", 5, "6-SuRe-Triple");
} else {
gui.logMessage("Skipping setting state label '6-SuRe-Triple' of device 'IL-Turret'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '6-SuRe-Triple' of device 'IL-Turret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for IL-Turret
if (deviceInitMap.containsKey("IL-Turret") &&
deviceInitMap.get("IL-Turret")) {
mmc.defineStateLabel("IL-Turret", 4, "5-EMP");
} else {
gui.logMessage("Skipping setting state label '5-EMP' of device 'IL-Turret'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '5-EMP' of device 'IL-Turret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for IL-Turret
if (deviceInitMap.containsKey("IL-Turret") &&
deviceInitMap.get("IL-Turret")) {
mmc.defineStateLabel("IL-Turret", 3, "4-Y5");
} else {
gui.logMessage("Skipping setting state label '4-Y5' of device 'IL-Turret'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '4-Y5' of device 'IL-Turret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for IL-Turret
if (deviceInitMap.containsKey("IL-Turret") &&
deviceInitMap.get("IL-Turret")) {
mmc.defineStateLabel("IL-Turret", 2, "3-Y3");
} else {
gui.logMessage("Skipping setting state label '3-Y3' of device 'IL-Turret'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '3-Y3' of device 'IL-Turret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for IL-Turret
if (deviceInitMap.containsKey("IL-Turret") &&
deviceInitMap.get("IL-Turret")) {
mmc.defineStateLabel("IL-Turret", 1, "2-GFP");
} else {
gui.logMessage("Skipping setting state label '2-GFP' of device 'IL-Turret'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '2-GFP' of device 'IL-Turret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for IL-Turret
if (deviceInitMap.containsKey("IL-Turret") &&
deviceInitMap.get("IL-Turret")) {
mmc.defineStateLabel("IL-Turret", 0, "1-DAPI");
} else {
gui.logMessage("Skipping setting state label '1-DAPI' of device 'IL-Turret'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '1-DAPI' of device 'IL-Turret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for ObjectiveTurret
if (deviceInitMap.containsKey("ObjectiveTurret") &&
deviceInitMap.get("ObjectiveTurret")) {
mmc.defineStateLabel("ObjectiveTurret", 5, "6-0x 0na");
} else {
gui.logMessage("Skipping setting state label '6-0x 0na' of device 'ObjectiveTurret'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '6-0x 0na' of device 'ObjectiveTurret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for ObjectiveTurret
if (deviceInitMap.containsKey("ObjectiveTurret") &&
deviceInitMap.get("ObjectiveTurret")) {
mmc.defineStateLabel("ObjectiveTurret", 4, "5-0x 0na");
} else {
gui.logMessage("Skipping setting state label '5-0x 0na' of device 'ObjectiveTurret'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '5-0x 0na' of device 'ObjectiveTurret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for ObjectiveTurret
if (deviceInitMap.containsKey("ObjectiveTurret") &&
deviceInitMap.get("ObjectiveTurret")) {
mmc.defineStateLabel("ObjectiveTurret", 3, "4-0x 0na");
} else {
gui.logMessage("Skipping setting state label '4-0x 0na' of device 'ObjectiveTurret'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '4-0x 0na' of device 'ObjectiveTurret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for ObjectiveTurret
if (deviceInitMap.containsKey("ObjectiveTurret") &&
deviceInitMap.get("ObjectiveTurret")) {
mmc.defineStateLabel("ObjectiveTurret", 2, "3-100x 1.47na");
} else {
gui.logMessage("Skipping setting state label '3-100x 1.47na' of device 'ObjectiveTurret'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '3-100x 1.47na' of device 'ObjectiveTurret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for ObjectiveTurret
if (deviceInitMap.containsKey("ObjectiveTurret") &&
deviceInitMap.get("ObjectiveTurret")) {
mmc.defineStateLabel("ObjectiveTurret", 1, "2-63x 1.4na");
} else {
gui.logMessage("Skipping setting state label '2-63x 1.4na' of device 'ObjectiveTurret'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '2-63x 1.4na' of device 'ObjectiveTurret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for ObjectiveTurret
if (deviceInitMap.containsKey("ObjectiveTurret") &&
deviceInitMap.get("ObjectiveTurret")) {
mmc.defineStateLabel("ObjectiveTurret", 0, "1-25x 0.95na");
} else {
gui.logMessage("Skipping setting state label '1-25x 0.95na' of device 'ObjectiveTurret'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '1-25x 0.95na' of device 'ObjectiveTurret':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for SidePort
if (deviceInitMap.containsKey("SidePort") &&
deviceInitMap.get("SidePort")) {
mmc.defineStateLabel("SidePort", 2, "3");
} else {
gui.logMessage("Skipping setting state label '3' of device 'SidePort'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '3' of device 'SidePort':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for SidePort
if (deviceInitMap.containsKey("SidePort") &&
deviceInitMap.get("SidePort")) {
mmc.defineStateLabel("SidePort", 1, "2");
} else {
gui.logMessage("Skipping setting state label '2' of device 'SidePort'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '2' of device 'SidePort':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting state label for SidePort
if (deviceInitMap.containsKey("SidePort") &&
deviceInitMap.get("SidePort")) {
mmc.defineStateLabel("SidePort", 0, "1");
} else {
gui.logMessage("Skipping setting state label '1' of device 'SidePort'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting state label '1' of device 'SidePort':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
/** ********** Configuration presets ********** **/
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Exposure
if (deviceInitMap.containsKey("Horizontal") &&
deviceInitMap.get("Horizontal")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"Horizontal", "Exposure", "10.0000");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Exposure'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Exposure':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Gain
if (deviceInitMap.containsKey("Horizontal") &&
deviceInitMap.get("Horizontal")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"Horizontal", "Gain", "4");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Gain'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Gain':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Label
if (deviceInitMap.containsKey("LudlWheel Horizontal") &&
deviceInitMap.get("LudlWheel Horizontal")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"LudlWheel Horizontal", "Label", "700/75");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Label
if (deviceInitMap.containsKey("LudlWheel Vertical") &&
deviceInitMap.get("LudlWheel Vertical")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"LudlWheel Vertical", "Label", "525/50");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Transmission (%) 405nm-1
if (deviceInitMap.containsKey("LMM5-Hub") &&
deviceInitMap.get("LMM5-Hub")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"LMM5-Hub", "Transmission (%) 405nm-1", "0.0000");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Transmission (%) 405nm-1'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Transmission (%) 405nm-1':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Transmission (%) 488nm-2
if (deviceInitMap.containsKey("LMM5-Hub") &&
deviceInitMap.get("LMM5-Hub")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"LMM5-Hub", "Transmission (%) 488nm-2", "43.0000");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Transmission (%) 488nm-2'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Transmission (%) 488nm-2':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Transmission (%) 500nm-5
if (deviceInitMap.containsKey("LMM5-Hub") &&
deviceInitMap.get("LMM5-Hub")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"LMM5-Hub", "Transmission (%) 500nm-5", "0.0000");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Transmission (%) 500nm-5'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Transmission (%) 500nm-5':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Transmission (%) 561nm-4
if (deviceInitMap.containsKey("LMM5-Hub") &&
deviceInitMap.get("LMM5-Hub")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"LMM5-Hub", "Transmission (%) 561nm-4", "0.0000");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Transmission (%) 561nm-4'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Transmission (%) 561nm-4':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Transmission (%) 640nm-3
if (deviceInitMap.containsKey("LMM5-Hub") &&
deviceInitMap.get("LMM5-Hub")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"LMM5-Hub", "Transmission (%) 640nm-3", "41.0000");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Transmission (%) 640nm-3'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Transmission (%) 640nm-3':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Label
if (deviceInitMap.containsKey("LMM5-Shutter") &&
deviceInitMap.get("LMM5-Shutter")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"LMM5-Shutter", "Label", "488nm-2/640nm-3");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Method
if (deviceInitMap.containsKey("Scope") &&
deviceInitMap.get("Scope")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"Scope", "Method", "TL BF");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Method'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Method':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Label
if (deviceInitMap.containsKey("IL-Turret") &&
deviceInitMap.get("IL-Turret")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"IL-Turret", "Label", "5-EMP");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Label
if (deviceInitMap.containsKey("SidePort") &&
deviceInitMap.get("SidePort")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"SidePort", "Label", "1");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Exposure
if (deviceInitMap.containsKey("Vertical") &&
deviceInitMap.get("Vertical")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"Vertical", "Exposure", "10.0000");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Exposure'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Exposure':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : TIRF_DUAL_G-FR : Gain
if (deviceInitMap.containsKey("Vertical") &&
deviceInitMap.get("Vertical")) {
mmc.defineConfig("BWF_DUAL", "TIRF_DUAL_G-FR",
"Vertical", "Gain", "4");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'TIRF_DUAL_G-FR' property 'Gain'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Gain':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Exposure
if (deviceInitMap.containsKey("Horizontal") &&
deviceInitMap.get("Horizontal")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"Horizontal", "Exposure", "10.0000");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Exposure'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Exposure':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Gain
if (deviceInitMap.containsKey("Horizontal") &&
deviceInitMap.get("Horizontal")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"Horizontal", "Gain", "4");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Gain'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Gain':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Label
if (deviceInitMap.containsKey("LudlWheel Horizontal") &&
deviceInitMap.get("LudlWheel Horizontal")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"LudlWheel Horizontal", "Label", "525/60");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Label
if (deviceInitMap.containsKey("LudlWheel Vertical") &&
deviceInitMap.get("LudlWheel Vertical")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"LudlWheel Vertical", "Label", "593/40");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Transmission (%) 405nm-1
if (deviceInitMap.containsKey("LMM5-Hub") &&
deviceInitMap.get("LMM5-Hub")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"LMM5-Hub", "Transmission (%) 405nm-1", "0.0000");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Transmission (%) 405nm-1'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Transmission (%) 405nm-1':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Transmission (%) 488nm-2
if (deviceInitMap.containsKey("LMM5-Hub") &&
deviceInitMap.get("LMM5-Hub")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"LMM5-Hub", "Transmission (%) 488nm-2", "43.0000");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Transmission (%) 488nm-2'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Transmission (%) 488nm-2':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Transmission (%) 500nm-5
if (deviceInitMap.containsKey("LMM5-Hub") &&
deviceInitMap.get("LMM5-Hub")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"LMM5-Hub", "Transmission (%) 500nm-5", "0.0000");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Transmission (%) 500nm-5'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Transmission (%) 500nm-5':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Transmission (%) 561nm-4
if (deviceInitMap.containsKey("LMM5-Hub") &&
deviceInitMap.get("LMM5-Hub")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"LMM5-Hub", "Transmission (%) 561nm-4", "42.0000");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Transmission (%) 561nm-4'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Transmission (%) 561nm-4':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Transmission (%) 640nm-3
if (deviceInitMap.containsKey("LMM5-Hub") &&
deviceInitMap.get("LMM5-Hub")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"LMM5-Hub", "Transmission (%) 640nm-3", "0.0000");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Transmission (%) 640nm-3'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Transmission (%) 640nm-3':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Label
if (deviceInitMap.containsKey("LMM5-Shutter") &&
deviceInitMap.get("LMM5-Shutter")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"LMM5-Shutter", "Label", "488nm-2/561nm-4/500nm-5");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Method
if (deviceInitMap.containsKey("Scope") &&
deviceInitMap.get("Scope")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"Scope", "Method", "FLUO");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Method'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Method':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Label
if (deviceInitMap.containsKey("IL-Turret") &&
deviceInitMap.get("IL-Turret")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"IL-Turret", "Label", "6-SuRe-Triple");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Label
if (deviceInitMap.containsKey("SidePort") &&
deviceInitMap.get("SidePort")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"SidePort", "Label", "1");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Exposure
if (deviceInitMap.containsKey("Vertical") &&
deviceInitMap.get("Vertical")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"Vertical", "Exposure", "10.0000");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Exposure'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Exposure':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group BWF_DUAL : BWF_488-561 : Gain
if (deviceInitMap.containsKey("Vertical") &&
deviceInitMap.get("Vertical")) {
mmc.defineConfig("BWF_DUAL", "BWF_488-561",
"Vertical", "Gain", "4");
} else {
gui.logMessage("Skipping setting config group 'BWF_DUAL':'BWF_488-561' property 'Gain'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'BWF_DUAL' property 'Gain':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Blue_Enable
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "Blue_Enable", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Blue_Enable'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Blue_Enable':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Blue_Level
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "Blue_Level", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Blue_Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Blue_Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Channel
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "Channel", "1");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Channel'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Channel':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Cyan_Enable
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "Cyan_Enable", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Cyan_Enable'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Cyan_Enable':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Cyan_Level
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "Cyan_Level", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Cyan_Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Cyan_Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Green_Enable
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "Green_Enable", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Green_Enable'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Green_Enable':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Green_Level
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "Green_Level", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Green_Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Green_Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Init_LE
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "Init_LE", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Init_LE'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Init_LE':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Red_Enable
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "Red_Enable", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Red_Enable'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Red_Enable':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Red_Level
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "Red_Level", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Red_Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Red_Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : State
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "State", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'State'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'State':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Teal_Enable
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "Teal_Enable", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Teal_Enable'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Teal_Enable':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Teal_Level
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "Teal_Level", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Teal_Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Teal_Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Violet_Enable
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "Violet_Enable", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Violet_Enable'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Violet_Enable':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Violet_Level
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "Violet_Level", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Violet_Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Violet_Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : White_Enable
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "White_Enable", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'White_Enable'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'White_Enable':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : White_Level
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "White_Level", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'White_Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'White_Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : YG_Filter
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Spectra", "YG_Filter", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'YG_Filter'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'YG_Filter':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Label
if (deviceInitMap.containsKey("LMM5-Shutter") &&
deviceInitMap.get("LMM5-Shutter")) {
mmc.defineConfig("Eyepieces", "BrightField",
"LMM5-Shutter", "Label", "");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : State
if (deviceInitMap.containsKey("LMM5-Shutter") &&
deviceInitMap.get("LMM5-Shutter")) {
mmc.defineConfig("Eyepieces", "BrightField",
"LMM5-Shutter", "State", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'State'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'State':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Label
if (deviceInitMap.containsKey("SidePort") &&
deviceInitMap.get("SidePort")) {
mmc.defineConfig("Eyepieces", "BrightField",
"SidePort", "Label", "1");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : State
if (deviceInitMap.containsKey("SidePort") &&
deviceInitMap.get("SidePort")) {
mmc.defineConfig("Eyepieces", "BrightField",
"SidePort", "State", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'State'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'State':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : State
if (deviceInitMap.containsKey("TL-Shutter") &&
deviceInitMap.get("TL-Shutter")) {
mmc.defineConfig("Eyepieces", "BrightField",
"TL-Shutter", "State", "1");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'State'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'State':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Control
if (deviceInitMap.containsKey("Transmitted Light") &&
deviceInitMap.get("Transmitted Light")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Transmitted Light", "Control", "Manual");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Control'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Control':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Level
if (deviceInitMap.containsKey("Transmitted Light") &&
deviceInitMap.get("Transmitted Light")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Transmitted Light", "Level", "89");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : State
if (deviceInitMap.containsKey("Transmitted Light") &&
deviceInitMap.get("Transmitted Light")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Transmitted Light", "State", "1");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'State'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'State':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Method
if (deviceInitMap.containsKey("Scope") &&
deviceInitMap.get("Scope")) {
mmc.defineConfig("Eyepieces", "BrightField",
"Scope", "Method", "FLUO");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Method'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Method':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : Label
if (deviceInitMap.containsKey("IL-Turret") &&
deviceInitMap.get("IL-Turret")) {
mmc.defineConfig("Eyepieces", "BrightField",
"IL-Turret", "Label", "2-GFP");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : BrightField : State
if (deviceInitMap.containsKey("IL-Turret") &&
deviceInitMap.get("IL-Turret")) {
mmc.defineConfig("Eyepieces", "BrightField",
"IL-Turret", "State", "1");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'BrightField' property 'State'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'State':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Blue_Enable
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "Blue_Enable", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Blue_Enable'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Blue_Enable':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Blue_Level
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "Blue_Level", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Blue_Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Blue_Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Channel
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "Channel", "3");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Channel'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Channel':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Cyan_Enable
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "Cyan_Enable", "1");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Cyan_Enable'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Cyan_Enable':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Cyan_Level
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "Cyan_Level", "50");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Cyan_Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Cyan_Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Green_Enable
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "Green_Enable", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Green_Enable'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Green_Enable':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Green_Level
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "Green_Level", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Green_Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Green_Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Init_LE
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "Init_LE", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Init_LE'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Init_LE':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Red_Enable
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "Red_Enable", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Red_Enable'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Red_Enable':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Red_Level
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "Red_Level", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Red_Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Red_Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : State
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "State", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'State'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'State':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Teal_Enable
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "Teal_Enable", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Teal_Enable'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Teal_Enable':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Teal_Level
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "Teal_Level", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Teal_Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Teal_Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Violet_Enable
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "Violet_Enable", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Violet_Enable'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Violet_Enable':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Violet_Level
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "Violet_Level", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Violet_Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Violet_Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : White_Enable
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "White_Enable", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'White_Enable'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'White_Enable':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : White_Level
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "White_Level", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'White_Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'White_Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : YG_Filter
if (deviceInitMap.containsKey("Spectra") &&
deviceInitMap.get("Spectra")) {
mmc.defineConfig("Eyepieces", "Green",
"Spectra", "YG_Filter", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'YG_Filter'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'YG_Filter':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Label
if (deviceInitMap.containsKey("LMM5-Shutter") &&
deviceInitMap.get("LMM5-Shutter")) {
mmc.defineConfig("Eyepieces", "Green",
"LMM5-Shutter", "Label", "");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : State
if (deviceInitMap.containsKey("LMM5-Shutter") &&
deviceInitMap.get("LMM5-Shutter")) {
mmc.defineConfig("Eyepieces", "Green",
"LMM5-Shutter", "State", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'State'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'State':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Method
if (deviceInitMap.containsKey("Scope") &&
deviceInitMap.get("Scope")) {
mmc.defineConfig("Eyepieces", "Green",
"Scope", "Method", "FLUO");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Method'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Method':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Label
if (deviceInitMap.containsKey("IL-Turret") &&
deviceInitMap.get("IL-Turret")) {
mmc.defineConfig("Eyepieces", "Green",
"IL-Turret", "Label", "2-GFP");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : State
if (deviceInitMap.containsKey("IL-Turret") &&
deviceInitMap.get("IL-Turret")) {
mmc.defineConfig("Eyepieces", "Green",
"IL-Turret", "State", "1");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'State'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'State':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Label
if (deviceInitMap.containsKey("SidePort") &&
deviceInitMap.get("SidePort")) {
mmc.defineConfig("Eyepieces", "Green",
"SidePort", "Label", "1");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Label'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Label':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : State
if (deviceInitMap.containsKey("SidePort") &&
deviceInitMap.get("SidePort")) {
mmc.defineConfig("Eyepieces", "Green",
"SidePort", "State", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'State'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'State':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : State
if (deviceInitMap.containsKey("TL-Shutter") &&
deviceInitMap.get("TL-Shutter")) {
mmc.defineConfig("Eyepieces", "Green",
"TL-Shutter", "State", "1");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'State'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'State':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Control
if (deviceInitMap.containsKey("Transmitted Light") &&
deviceInitMap.get("Transmitted Light")) {
mmc.defineConfig("Eyepieces", "Green",
"Transmitted Light", "Control", "Manual");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Control'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Control':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : Level
if (deviceInitMap.containsKey("Transmitted Light") &&
deviceInitMap.get("Transmitted Light")) {
mmc.defineConfig("Eyepieces", "Green",
"Transmitted Light", "Level", "0");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'Level'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'Level':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group Eyepieces : Green : State
if (deviceInitMap.containsKey("Transmitted Light") &&
deviceInitMap.get("Transmitted Light")) {
mmc.defineConfig("Eyepieces", "Green",
"Transmitted Light", "State", "1");
} else {
gui.logMessage("Skipping setting config group 'Eyepieces':'Green' property 'State'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'Eyepieces' property 'State':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group TIRF_HORIZ : 561 EX TIRF : Exposure
if (deviceInitMap.containsKey("Horizontal") &&
deviceInitMap.get("Horizontal")) {
mmc.defineConfig("TIRF_HORIZ", "561 EX TIRF",
"Horizontal", "Exposure", "10.0000");
} else {
gui.logMessage("Skipping setting config group 'TIRF_HORIZ':'561 EX TIRF' property 'Exposure'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'TIRF_HORIZ' property 'Exposure':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group TIRF_HORIZ : 561 EX TIRF : Gain
if (deviceInitMap.containsKey("Horizontal") &&
deviceInitMap.get("Horizontal")) {
mmc.defineConfig("TIRF_HORIZ", "561 EX TIRF",
"Horizontal", "Gain", "4");
} else {
gui.logMessage("Skipping setting config group 'TIRF_HORIZ':'561 EX TIRF' property 'Gain'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'TIRF_HORIZ' property 'Gain':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group TIRF_HORIZ : 561 EX TIRF : State
if (deviceInitMap.containsKey("LudlWheel Vertical") &&
deviceInitMap.get("LudlWheel Vertical")) {
mmc.defineConfig("TIRF_HORIZ", "561 EX TIRF",
"LudlWheel Vertical", "State", "0");
} else {
gui.logMessage("Skipping setting config group 'TIRF_HORIZ':'561 EX TIRF' property 'State'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'TIRF_HORIZ' property 'State':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group TIRF_HORIZ : 561 EX TIRF : Transmission (%) 488nm-2
if (deviceInitMap.containsKey("LMM5-Hub") &&
deviceInitMap.get("LMM5-Hub")) {
mmc.defineConfig("TIRF_HORIZ", "561 EX TIRF",
"LMM5-Hub", "Transmission (%) 488nm-2", "60.0000");
} else {
gui.logMessage("Skipping setting config group 'TIRF_HORIZ':'561 EX TIRF' property 'Transmission (%) 488nm-2'");
}
} catch (java.lang.Exception ex) {
gui.logMessage("Exception setting config group 'TIRF_HORIZ' property 'Transmission (%) 488nm-2':");
gui.logMessage(ex.getMessage());
gui.logMessage("ignoring...");
};
try {
// Setting config group TIRF_HORIZ : 561 EX TIRF : Label
if (deviceInitMap.containsKey("LMM5-Shutter") &&
deviceInitMap.get("LMM5-Shutter")) {