Skip to content

PVCAM: Removed polling for acquisition state#941

Merged
marktsuchida merged 4 commits into
micro-manager:mainfrom
tomhanak:remove-polling
May 7, 2026
Merged

PVCAM: Removed polling for acquisition state#941
marktsuchida merged 4 commits into
micro-manager:mainfrom
tomhanak:remove-polling

Conversation

@tomhanak
Copy link
Copy Markdown
Contributor

@tomhanak tomhanak commented May 6, 2026

Polling doesn't work reliably with recent fast cameras. Registering an EOF callback handler is the recommended way for many years already. Removed all the logic related to polling, including a property for selecting between polling and callbacks.

As a side change I have fixed auto-shutter that was not always closed at the acquisition end, because it was inside modified code. This has been reported and fix proposed in PR #907.

tomhanak added 4 commits May 5, 2026 19:03
Polling doesn't work reliably with recent fast cameras. Registering an EOF callback handler is the recommended way for many years already. Removed all logic related to polling, including a property for selecting between polling and callbacks.
…end.

When running live acquisition with circular buffer mode disabled, the auto-shutter stayed open at the acquisition end.
This has been also reported in PR 907, but the fix has not been merged (yet).
The FrameAcquired() function locks acqLock_. Any error in here or nested call would cause a deadlock by calling StopSequenceAcquisition(). Switched to abortAcquisitionInternal() that doesn't lock and done that on a few exit points only.
@marktsuchida marktsuchida merged commit 547172d into micro-manager:main May 7, 2026
2 checks passed
@tomhanak tomhanak deleted the remove-polling branch May 7, 2026 12:19
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