micro-manager / futureMMCore

Place to discuss the future design of a universal microscope hardware interface
Creative Commons Zero v1.0 Universal
15 stars 1 forks source link

Understanding the current configuration file structure #9

Open nanthony21 opened 3 years ago

nanthony21 commented 3 years ago

Questions were raised about various sections of the configuration files:

# Camera-synchronized devices

Property,Core,Initialize,1
nicost commented 3 years ago

Camera-synchronized devices

Not sure about that one. I think the idea was to check such devices (using the Busy() call before snapping an image, but I don't think this was ever implemented. Only synchroniced device is the shutter (when auto-shutter is on). The source code may reveal more;)

Property,Core,Initialize,1

The current Core reads the configuration file line by line, and "executes" the commands contained in them. This particular "command" tells the core that the devices can be initialized. There were at least two reasons to do it this way, rather than initialize every device immediately after loading:

nanthony21 commented 3 years ago

Interesting, I didn't realize the config file runs essentially like a script.

SK-UK commented 3 years ago

I don't suppose there's any interest into making it JSON-based? Even if it's just a translation layer to the old scheme?