Skip to content

Fixed get_vtm_sequence() to use new pvc functions for proper VTM acquisition#60

Merged
tomhanak merged 7 commits intomasterfrom
fix-vtm
Oct 2, 2025
Merged

Fixed get_vtm_sequence() to use new pvc functions for proper VTM acquisition#60
tomhanak merged 7 commits intomasterfrom
fix-vtm

Conversation

@tomhanak
Copy link
Contributor

@tomhanak tomhanak commented Oct 2, 2025

The fix relies on the changes in underlying pvc module.

Separated acquisition setup and start in pvc module and added 4 new functions - pvc_start_live now internally only calls new pvc_setup_live and pvc_start_set_live, pvc_start_seq calls new pvc_setup_seq and pvc_start_set_seq.

The pvc_setup_* functions proceed with all acq. setup and buffer allocations, the pvc_start_set_* functions just reset FPS counters and start the acquisition.

This allows finer control needed e.g. for a time-lapse acquisitions with Variable Timed exposure Mode (VTM), where the acq. should be set up only once and then for each frame is called set_param for PARAM_EXP_TIME with new value followed by acq. start capturing one frame with given exposure time.

Added 4 new functions - pvc_start_live now internally only calls new pvc_setup_live and pvc_start_set_live, pvc_start_seq calls new pvc_setup_seq and pvc_start_set_seq.

The pvc_setup_* functions proceed with all acq. setup, callback registration and buffer allocations, the pvc_start_set_* functions just reset FPS counters and start the acquisition.

This allows finer control needed e.g. for a time-lapse acquisitions with Variable Timed exposure Mode (VTM), where the acq. should be set up only once and then for each frame is called set_param for PARAM_EXP_TIME with new value followed by acq. start capturing one frame with given exposure time.
@tomhanak tomhanak merged commit 9ddafe4 into master Oct 2, 2025
6 checks passed
@tomhanak tomhanak deleted the fix-vtm branch October 2, 2025 06:43
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.

1 participant