MM tries to initialize all available COM ports

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

MM tries to initialize all available COM ports

Nikita Vladimirov

Hi, MM community,

I am using the RAMPS device adapter for stage control via Arduino, and it normally works very well. However, if I have another device connected to USB/serial port (active session) and I try to launch MM, the MM configuration launcher attempts to scan and initialize all serial ports, even those which are busy - which causes crash of the MM launcher. The core log is quoted below.

Is there a known fix to this problem?

Thank you,

Nikita

Core log info: my RAMPS device is on COM5, and my other device is on COM4 (active session). The MM core log reports:

2018-10-22T11:20:33.945260 tid21404 [IFO,Core] Did unload all devices
2018-10-22T11:20:33.959288 tid21404 [IFO,Core] Did load device COM5 from SerialManager; label = COM5
2018-10-22T11:20:33.959288 tid21404 [IFO,Core] Did load device COM4 from SerialManager; label = COM4
2018-10-22T11:20:34.249477 tid21404 [IFO,Core] Did load device HamamatsuHam_DCAM from HamamatsuHam; label = Camera
2018-10-22T11:20:34.265500 tid21404 [IFO,Core] Did load device RAMPSHub from RAMPS; label = RAMPSHub
2018-10-22T11:20:34.265500 tid21404 [IFO,Core] Did load device RAMPSZStage from RAMPS; label = RAMPSZStage
2018-10-22T11:20:34.266487 tid21404 [IFO,Core] Will initialize 5 devices
2018-10-22T11:20:34.266487 tid21404 [IFO,Core] Will initialize device COM5
2018-10-22T11:20:34.267485 tid21404 [IFO,dev:COM5] Setting standard USB to Serial settings
2018-10-22T11:20:34.274495 tid21404 [IFO,Core] Did initialize device COM5
2018-10-22T11:20:34.274495 tid21404 [IFO,Core] Will initialize device COM4
2018-10-22T11:20:34.274495 tid21404 [IFO,dev:COM4] Failed to open serial port \\.\COM4: CreateFileA() returned Windows system error code 5
2018-10-22T11:20:34.274495 tid21404 [ERR,Core:dev:COM4] Error in device "COM4": Unknown error in the device (1)
2018-10-22T11:20:34.276490 tid21404 [IFO,Core] Unloading all devices after failure to load system configuration
2018-10-22T11:20:34.478097 tid21404 [IFO,Core] Did unload all devices
2018-10-22T11:20:34.478097 tid21404 [IFO,Core] Now rethrowing original error from system configuration loading
2018-10-22T11:20:34.483138 tid21404 [IFO,App] Failed to load hardware configuation
                                    [       ] java.lang.Exception: Line 40: Property,Core,Initialize,1
                                    [       ] Error in device "COM4": Unknown error in the device (1)
                                    [       ]
                                    [       ]  in Thread[AWT-EventQueue-0,6,main]
                                    [       ]   at mmcorej.MMCoreJJNI.CMMCore_loadSystemConfiguration(Native Method)
                                    [       ]   at mmcorej.CMMCore.loadSystemConfiguration(CMMCore.java:366)
                                    [       ]   at org.micromanager.MMStudio.loadSystemConfiguration(MMStudio.java:1730)
                                    [       ]   at org.micromanager.MMStudio.initializationSequence(MMStudio.java:485)
                                    [       ]   at org.micromanager.MMStudio.<init>(MMStudio.java:375)
                                    [       ]   at MMStudioPlugin$1.run(MMStudioPlugin.java:76)
                                    [       ]   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
                                    [       ]   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
                                    [       ]   at java.awt.EventQueue.access$000(Unknown Source)
                                    [       ]   at java.awt.EventQueue$1.run(Unknown Source)
                                    [       ]   at java.awt.EventQueue$1.run(Unknown Source)
                                    [       ]   at java.security.AccessController.doPrivileged(Native Method)
                                    [       ]   at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
                                    [       ]   at java.awt.EventQueue.dispatchEvent(Unknown Source)
                                    [       ]   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
                                    [       ]   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
                                    [       ]   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
                                    [       ]   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                                    [       ]   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                                    [       ]   at java.awt.EventDispatchThread.run(Unknown Source)



-- 
Nikita Vladimirov, PhD

Preibisch Lab
Berlin Institute for Medical Systems Biology (BIMSB)
Max Delbrück Center for Molecular Medicine (MDC)
Robert-Rössle-Str. 10
Bld. 89, room 1.08
13125 Berlin
twitter.com/nvladimus
github.com/nvladimus


_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general