Micromanager Integration with ImSwitch
ImSwitch now includes an official device adapter for µManager, enabling seamless integration between ImSwitch hardware control and µManager's powerful acquisition and analysis capabilities.
Using ImSwitch with µManager
The ImSwitch device adapter allows you to control UC2 hardware directly from µManager, combining the best of both worlds: ImSwitch's UC2 hardware control with µManager's powerful acquisition and analysis tools.
What You Can Control
- Lasers: Up to 4 laser devices with individual power control
- Motorized Stages: XY and Z positioning with precise movement control
- Camera: Integrated camera control (requires separate camera driver installation)
- Synchronized Operations: Coordinate all devices for complex acquisition protocols
Key Benefits
- Familiar Interface: Use µManager's standard controls for UC2 hardware
- Advanced Acquisition: Leverage µManager's multi-dimensional acquisition capabilities
- Scripting Support: Automate workflows using µManager's macro and scripting features
- Community Plugins: Access to µManager's extensive plugin ecosystem
This integration is actively being developed and refined
Background
The UC2 device adapter has been integrated into the µManager core, allowing users to control UC2 hardware (stages, lasers, and other devices) directly through µManager's interface. This integration enables sophisticated microscopy workflows while maintaining the flexibility of the UC2 ecosystem.
Developer: Christian Karras
Version: 1.0.0
Development Location: Jena
Date: May 2025
Sources:
System Requirements
- µManager Version: 2.0.3 (20250304) or newer
- µManager Core Version: 11.4.1 or newer
- Device API Version: 71 or newer
- Module API Version: 10 or newer
- Operating System: Windows 11, macOS, or Linux
- UC2 Hardware: UC2_Feather V2.0 or newer
- Supported Cameras: Daheng Mercury 2 1220, MV-CE060-10UC, or similar
Device Capabilities
The µManager Device Adapter supports:
- Up to 4 laser controllers with individual power control
- XY and Z motorized stages with precise positioning
- Hardware synchronization for coordinated operations
The camera must be configured separately during the hardware configuration process. The UC2 adapter handles only the motorized components and lasers.
Setting up UC2 in µManager
Initial Configuration
- Open µManager and start with "None" configuration file
- Access Hardware Configuration Wizard:
- Go to Devices → Hardware Configuration Wizard
- Create new configuration, click Next
- From available devices choose openUC2/openUC2Hub device and Add
Device Configuration
Configure Communication:
- Set the proper COM Port (check Device Manager on Windows)
- Set BaudRate to 115200
dangerAn incorrect BaudRate setting will likely cause µManager to crash
Select Devices:
- Select all UC2 devices in the list (lasers, stages)
- Add your camera separately (tested with Daheng Mercury 2 1220, MV-CE060-10UC)
- Complete the Hardware Configuration Wizard and save the config file
Using Laser Control
Laser Operation
- Select laser: Choose the desired laser from the shutter dropdown menu
- Laser control: Open/Close shutter switches the laser on and off
- Power settings: Set laser power via Devices → Device Property Browser:
openUC2-Laser1-UC2LaserPower
openUC2-Laser2-UC2LaserPower
openUC2-Laser3-UC2LaserPower
openUC2-Laser4-UC2LaserPower
Disable "Auto" shutter mode for manual laser control
Stage Control
Stage Operation
- XY and Z stages are controlled using µManager's standard stage controls
- Movement: Use the stage control panel or coordinate input fields
- Precision: Supports precise positioning for multi-point acquisitions
Advanced Configuration
Device Variables (for Developers)
When building custom configurations, modify the following variables in UC2DEFAULTS.h
:
Critical Settings:
- Device IDs: Laser and XYZ stage identifiers
- Initialization values: Homing settings and axis speeds
- Firmware detection: State identifier name must be "UC2_Feather"
- Stage thresholds: Currently no endstop switches are implemented
Current Limitations
- Continuous Focus:
IsContinuousFocusDrive
is set to False - Stage Sequencing:
IsXYStageSequenceable
is set to False - Endstops: No endstop switch control is currently implemented
Integration Benefits
The ImSwitch µManager device adapter provides:
- Hardware Control: Full access to ImSwitch-controlled devices from µManager
- Synchronized Acquisition: Coordinated control of multiple devices
- Standard Interface: Uses µManager's standard device API
- Cross-Platform: Available on Windows, macOS, and Linux
- Official Support: Integrated into µManager nightly builds
Next Steps
After configuration, you can:
- Run acquisitions using µManager's Multi-Dimensional Acquisition tool
- Create automated workflows with µManager's scripting capabilities
- Use advanced plugins for specialized imaging techniques
- Export data in standard formats for analysis
For more advanced usage examples, see the µManager documentation.