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

add new feature to set camera parameters #920

Merged

Conversation

annie-xd-wang
Copy link
Collaborator

The new feature can set sensor mode, readout direction, and the number of pixels for the rolling shutter.

Currently can set sensor mode, readout direction and the number of pixels for the rolling shutter.
@AdvancedImagingUTSW
Copy link
Collaborator

AdvancedImagingUTSW commented Jun 17, 2024

I tested the code with this custom acquisition:

[{"name": ZStackAcquisition,},{"name": SetCameraParameters,"args": ("Light-Sheet","Bottom-to-Top",54,),},{"name": ZStackAcquisition,},]

Unfortunately, it was accompanied by a camera timeout. model_debug here:

2024-06-17 17:16:54,196 - model - DEBUG - common_features: *** Zstack move stage: (z: 10701.4), (f: -3139.1)
2024-06-17 17:16:54,231 - model - INFO - model: Navigate Model - Sent through pipe8
2024-06-17 17:16:54,495 - model - DEBUG - feature_container: running signal node: ZStackAcquisition
2024-06-17 17:16:54,496 - model - INFO - model: Navigate Model - Running data process, get frames [9]
2024-06-17 17:16:54,505 - model - DEBUG - feature_container: running signal node: SetCameraParameters
2024-06-17 17:16:54,537 - model - INFO - model: Navigate Model - Sent through pipe9
2024-06-17 17:16:55,399 - model - DEBUG - HamamatsuAPI: error message: -2147483386
2024-06-17 17:16:55,399 - model - INFO - model: Navigate Model - Running data process, get frames []
2024-06-17 17:16:55,399 - model - INFO - model: Navigate Model - Waiting 20
2024-06-17 17:16:55,400 - model - INFO - model: Navigate Model - Data thread stopped.
2024-06-17 17:16:55,400 - model - INFO - model: Navigate Model - Received frames in total: 10

It appears that the camera did switch modes, but it was not able to immediately begin imaging with the new settings thereafter...

@annie-xd-wang
Copy link
Collaborator Author

I've tested it on CT-ASLM-V2, and this new feature is now working.

@AdvancedImagingUTSW
Copy link
Collaborator

This will allow you to automatically switch camera parameters. For example, when switching from the mesoscale to the nanoscale modules on the multiscale microscope, the light-sheet readout direction could be adjusted. Or perhaps, in an automated routine, if the detected fluorescence is too dim, you could iteratively increase the exposure time.

@AdvancedImagingUTSW AdvancedImagingUTSW merged commit 7fbace9 into TheDeanLab:develop Jul 16, 2024
1 check passed
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