Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Understanding the current configuration file structure #9

Open
nanthony21 opened this issue Mar 11, 2021 · 3 comments
Open

Understanding the current configuration file structure #9

nanthony21 opened this issue Mar 11, 2021 · 3 comments
Labels
MicroscopeModel Related to the design of MicroscopeModel API MMKernel Related to the redesign MMCore into MMKernel

Comments

@nanthony21
Copy link
Member

Questions were raised about various sections of the configuration files:

# Camera-synchronized devices

Property,Core,Initialize,1
@nicost
Copy link
Member

nicost commented Mar 11, 2021

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:

  • Pre-initialization properties need to be set before initialization
  • The order of device initialization can be important, for instance, Serial ports need to be initialized before the devices that makes use of them are initialized.

@nanthony21
Copy link
Member Author

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

@henrypinkard henrypinkard changed the title GDOCS: Understanding the current configuration file structure Understanding the current configuration file structure Mar 23, 2021
@henrypinkard henrypinkard added MMKernel Related to the redesign MMCore into MMKernel MicroscopeModel Related to the design of MicroscopeModel API labels Mar 23, 2021
@SK-UK
Copy link

SK-UK commented May 4, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MicroscopeModel Related to the design of MicroscopeModel API MMKernel Related to the redesign MMCore into MMKernel
Projects
None yet
Development

No branches or pull requests

4 participants