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

Feature Request: Standalone version for small deployments #4

Closed
coderdj opened this issue Mar 10, 2014 · 5 comments
Closed

Feature Request: Standalone version for small deployments #4

coderdj opened this issue Mar 10, 2014 · 5 comments

Comments

@coderdj
Copy link
Owner

coderdj commented Mar 10, 2014

It should be possible to install a standalone version of the DAQ which runs on one PC and writes files directly. An example use case would be for a PMT test station somewhere where a board or two need to be read out via one PC.

The design requirements are:
* Write to file instead of to mongodb
* Provide a tool to read the files (or at least a class)
* Remove mongodb dependency from the slave module for this mode
* Easily editable options file which is available in the top directory
* Easily executed run script in the top directory
* Simple UI (probably console text based)
* Should compile with a ./configure --litemode or similar option
* Needs docs to give a step-by-step guide to deployment

@coderdj
Copy link
Owner Author

coderdj commented Mar 24, 2014

The first step in this will be a module that writes to mongodb (since file output is a whole new can of worms). This will simply be a new main function for the koSlave module which will allow running from the command line, effectively cutting the master and UI out (they are not necessary).

@coderdj
Copy link
Owner Author

coderdj commented Mar 24, 2014

A new (and now documented) compile option allows compilation of a "lite mode" for the DAQ. This is done using ./configure --enable-lite. The directory kodiaq/klite now includes a config file and a script for starting the lite DAQ daemon. File output is not yet supported and the mongodb dependency for the lite version is still in. In the future the plan will be to implement direct file output and remove the dependency on the mongodb driver for the lite version, at least as an option.

@tunnell
Copy link
Contributor

tunnell commented Mar 24, 2014

We probably need to agree on a data structure that is more c++ friendly 

Verzonden vanaf Samsung Mobile

-------- Oorspronkelijk bericht --------
Van: Daniel Coderre notifications@github.com
Datum:24-03-2014 18:21 (GMT+01:00)
Aan: XENON1T/kodiaq kodiaq@noreply.github.com
Onderwerp: Re: [kodiaq] Feature Request: Standalone version for small
deployments (#4)

A new (and now documented) compile option allows compilation of a "lite mode" for the DAQ. This is done using ./configure --enable-lite. The directory kodiaq/klite now includes a config file and a script for starting the lite DAQ daemon. File output is not yet supported and the mongodb dependency for the lite version is still in. In the future the plan will be to implement direct file output and remove the dependency on the mongodb driver for the lite version, at least as an option.


Reply to this email directly or view it on GitHub.

@coderdj
Copy link
Owner Author

coderdj commented Apr 6, 2014

Check here for a first attempt: https://github.com/XENON1T/kodiaq/wiki/Protocol%20buffer%20format

File output using this format (only data objects exist right now) is running in the update branch.

@coderdj
Copy link
Owner Author

coderdj commented May 14, 2014

Closed using libpbf for file output. Standalone version could use a small amount of polishing for ease of use, but works and has been in use in Bern for some time. See file format here: https://github.com/coderdj/libpbf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants