Skip to content

Logical variable - #1

Open
gustavosr8 wants to merge 15 commits into
masterfrom
logical_variable
Open

Logical variable#1
gustavosr8 wants to merge 15 commits into
masterfrom
logical_variable

Conversation

@gustavosr8

Copy link
Copy Markdown

Hi @guirodrigueslima @henriquesimoes @ericonr!

I've noticed we had this PR staled in the upstream, so I thought it would be better if we go through an internal cycle of reviews and then bring this to AD collab meeting. For this reason, I'm opening this internal PR and assigning it to @guirodrigueslima

@gustavosr8

Copy link
Copy Markdown
Author

Same for #2

@gustavosr8 gustavosr8 left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Message suggestion for ccfdc3a:

Add SpecsLab Prodigy Remote Control Protocol manual version 1.19

About the second commit, it is very hard to read. Please, if possible, split it into minor ones, explaining in detail what is being done.

Comment thread specsAnalyserApp/src/specsAnalyser.h Outdated
Comment thread specsAnalyserApp/Db/specsAnalyser.template Outdated
Comment thread specsAnalyserApp/Db/specsAnalyser.template
Comment thread specsAnalyserApp/src/specsAnalyser.cpp
Comment thread specsAnalyserApp/src/specsAnalyser.cpp
Comment thread specsAnalyserApp/src/specsAnalyser.cpp Outdated
Comment thread specsAnalyserApp/src/specsAnalyser.cpp Outdated
Comment thread specsAnalyserApp/src/specsAnalyser.cpp Outdated
Comment thread specsAnalyserApp/src/specsAnalyser.cpp Outdated
Comment thread specsAnalyserApp/src/specsAnalyser.cpp
guirodrigueslima and others added 8 commits July 14, 2026 08:18
Basic formatting style to standardize formatting across files and fix
broken formatting in some files.
Co-authored-by: Guilherme Rodrigues de Lima <guilherme.lima@lnls.br>
A delay was introduced to ensure that the data will be ready to read
out. This don't seems to be needed anymore.

The DATA_DELAY_MAX PV was introduced in 884ce9b to make it easier to
test different values of delays, so it can also be removed.

Co-authored-by: Guilherme Rodrigues de Lima <guilherme.lima@lnls.br>
image and spectrum are defined as epicsFloat64 pointers, so it should
also be the type casting.

Co-authored-by: Guilherme Rodrigues de Lima <guilherme.lima@lnls.br>
If the status is set to asynError during the acquisition for any reason,
stop it and send a clear command.

Co-authored-by: Guilherme Rodrigues de Lima <guilherme.lima@lnls.br>
Co-authored-by: Guilherme Rodrigues de Lima <guilherme.lima@lnls.br>
@gustavosr8

Copy link
Copy Markdown
Author

@guirodrigueslima I've split the commits in some related changes and improved a little bit the documentation. Its still very superficial, evenly in the last commit, but please check if everything still working as expected and if all commits makes sense. Also, feel free to rework any of this, if you want.

Comment thread specsAnalyserApp/src/specsAnalyser.cpp Outdated
Comment thread specsAnalyserApp/src/specsAnalyser.cpp Outdated
Comment thread specsAnalyserApp/src/specsAnalyser.cpp
Comment thread specsAnalyserApp/src/specsAnalyser.cpp
Comment thread specsAnalyserApp/src/specsAnalyser.cpp
Comment thread specsAnalyserApp/src/specsAnalyser.h Outdated
gustavosr8 and others added 7 commits August 27, 2026 08:26
Besides the parameter type, the function can be reworked to also return
the unit, if present in the data.

Co-authored-by: Guilherme Rodrigues de Lima <guilherme.lima@lnls.br>
This seems necessary only for a specific CCD scenario found in DLS.
Removing it since the problem seems not reproducible in other
facilities.

Co-authored-by: Guilherme Rodrigues de Lima <guilherme.lima@lnls.br>
The Start/End and Scan variable PVs are missing to fulfill the
DefineSpectrumVLS [1] command, that will be implemented in the future.

[1] SpecsLab Prodigy TCP Remote Protocol 1.19, section 2.7

Co-authored-by: Guilherme Rodrigues de Lima <guilherme.lima@lnls.br>
Define a parsing for reading it from the received command and send it
with the corresponding value unit when sending a command.

Co-authored-by: Guilherme Rodrigues de Lima <guilherme.lima@lnls.br>
Co-authored-by: Guilherme Rodrigues de Lima <guilherme.lima@lnls.br>
Co-authored-by: Guilherme Rodrigues de Lima <guilherme.lima@lnls.br>
When using the logical variable mode, we have a frame being captured for
each logical step. For this reason, now we are dealing with a
3-dimensional data.

The logic for finishing one acquisition has also being simplified.

The NDArray allocation has being moved to the end of the loop, when the
frame callback is actually being called.

Co-authored-by: Guilherme Rodrigues de Lima <guilherme.lima@lnls.br>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants