Replies: 1 comment 5 replies
-
Hi @Semptum , thanks for your question. That is a typical case for the Data Protocol:
You have to think about the content of the DataMessages, what you want to send and how to interpret it at the Logging instance. The nice thing about this approach is, that you can add additional listeners, which could listen only to a part or to show information directly etc. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We’re currently setting up a new data‐acquisition system in our lab and have decided to use LECO for instrument coordination. Rather than using LECO’s built-in DataLogger, I’d like to take a different approach, since it offers additional flexibility. I’d appreciate advice on how best to integrate this approach with LECO.
I set up a database (postgresql/timescaledb) to be able to log events in the lab. It's set up to be able to store:
Just to be clear, we would not be sending any binary data from the detectors over LECO. Instead, whenever a detector finishes saving its data, it should send a “file‐saved” message (including the file path and associated metadata, which it received over LECO earlier) to the database. Similarly, whenever a motion starts or finishes, the actuator should send that event to the database
I was wondering how best to proceed with actually tying this into LECO, preferably without distributing the task of database writing to every actor.
The way I see it, It makes little sense to use the control protocol coordinators since they are not centralised. So my current plan is:
I'm still new to LECO so I might have mixed up a few concepts (for instance, I'm not sure if you can send a message to a proxy_server or if you have to set up a Listener connected to it and have that log those messages).
My questions are:
I know it's a fairly vague question, if anyone has some advice on how to integrate a centralized logger with LECO (and on whether “proxy_server + listener” is the right pattern) would be greatly appreciated.
Thanks in advance for any pointers!
Beta Was this translation helpful? Give feedback.
All reactions