Open artmeln opened 3 years ago
I agree this is an area that needs addressing. Micro-Manager has various "keyword" properties which in some cases are required in order for proper functioning of the GUI. Any required properties should instead just be part of the MMDevice interface.
As mentioned in #16 there is at least one property that is required by camera device adapters in order to work in the GUI. This is the "Binning" property. Even though the device interface allows for getting/setting of binning it doesn't allow for querying the possible String
values of binning, this is what the GUI requires the property for.
2. When implementing a device adapter, avoid creating properties with functionality overlapping with existing method calls (such as PositionX for XYStage);
I've noticed that many cameras have an Exposure
property even though this is part of the device interface. Part of the reason for this is that the getExposure
method is defined as const
which prevent member variables from being modified inside of the implementation. Device adapters can work-around this issue using the Exposure
property. We should evaluate all const
methods to make sure there is a good reason for them to be defined as such.
I think the relationship between method calls and properties is confusing and can be improved in a future version of MM. Here are two examples that illustrate my point:
Perhaps, a stricter set of guidelines for implementing a new adapter would be useful, something along the lines of: