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

Sequence calculation during execution time #52

Open
schote opened this issue Jan 19, 2024 · 0 comments
Open

Sequence calculation during execution time #52

schote opened this issue Jan 19, 2024 · 0 comments

Comments

@schote
Copy link
Owner

schote commented Jan 19, 2024

In the current setup, the sequence is calculated prior to experiment execution.
The calculations of a long sequence (e.g. for 3D imaging) which runs for approx. 15 mins may take up to 2 min of computation time (dependents on the system).

The calculation of a sequence and it's execution can be carried out simultaneously with a short time offset.
This requires to run the sequence provider and the acquisition control in different processes.
Separated threads would not be sufficient, as they only execute the code concurrently.

Both processes could share a queue which is fed by the sequence provider and consumed by the acquisition control.
Before starting the sequence execution, a certain part of the calculation must be concluded to not run out of sequence samples.
The sequence calculation can be executed in a separate processes pushing each sequence block to a global queue object.

Custom process class example

Multiprocessing queue example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant