Comments (2)
Hello!
Unfortunately, the camera class does not currently implement the gain control. Nevertheless, the required method wrappers are already defined in the backend. Therefore, you can simply use the following functions to control the gain:
from pylablib.devices import Thorlabs
def get_gain(camera):
idx=Thorlabs.TLCamera.lib.tl_camera_get_gain(camera.handle)
return Thorlabs.TLCamera.lib.tl_camera_convert_gain_to_decibels(camera.handle,idx)
def get_gain_range(camera):
rng=Thorlabs.TLCamera.lib.tl_camera_get_gain_range(camera.handle)
return tuple(Thorlabs.TLCamera.lib.tl_camera_convert_gain_to_decibels(camera.handle,g) for g in rng)
def set_gain(camera, gain):
idx=Thorlabs.TLCamera.lib.tl_camera_convert_decibels_to_gain(camera.handle,gain)
Thorlabs.TLCamera.lib.tl_camera_set_gain(camera.handle,idx)
Keep in mind that trying to set the gain outside of the range would cause an error.
Sincerely,
Alexey.
from pylablib.
Thanks a lot. I will try it.
from pylablib.
Related Issues (20)
- No module named 'pylablib.devices.Andor.utils' HOT 1
- Fails on Linux platform with Ando SDK2 installed. HOT 2
- Hello, please tell me who used the thorlabs_apt_device library how to correctly call the status_ method to get the position in millimeters!
- Parameters not set correctly after initializing Thorlabs BSC203 HOT 3
- Clarification on MPC-XXX device operation HOT 13
- BSC 201-3 Can not home HOT 2
- Problem when opening connection with zelux (thorlabs camera) HOT 3
- Connection problem with MLS203 thorlabs stage and BBD302 controller HOT 3
- External Triger and DDG in AndorSDK2 HOT 1
- Set/Reset trigger with pyLabLib for Thorlabs KDC101 HOT 4
- Arcus Performax Stage AttributeError: NoneType object has no attribute 'argtypes' HOT 3
- Kinesis BBD302 x-stage moving but y-stage is not homing
- ThorlabsBackendError: backend exception: 'read returned less data than expected' ('read returned less data than expected') HOT 1
- Absolute movement causes the stage to move continously in wrong direction HOT 5
- Pyinstaller Executable Crashing
- setup_velocity method does not change minimum velocity and maximum velocity HOT 1
- BPC301 - connected, but no communication HOT 2
- Issue with jogging channel 3 of Kinesis Piezomoter with KIM101 4 channel controller HOT 2
- pylablib.devices.Thorlabs.KinesisMotor.wait_move() raise Exception in sub-thread HOT 1
- Picomotor controller model 8743-CL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylablib.