Error when setting exposure time

17 visualizaciones (últimos 30 días)
Happy PhD
Happy PhD el 18 de Dic. de 2025 a las 14:13
Respondida: Happy PhD el 19 de Dic. de 2025 a las 13:19
I use this to grab the camera I am using,
app.vidobj = imaq.VideoDevice('gentl', 1, 'Mono8');
Then I want to set the exposure time.
relase(app.vidobj);
app.vidobj.DeviceProperties.ExposureTime = 14000;
But I am getting an error:
Unable to set the 'ExposureTime' property of class 'DeviceProperties' because it is read-only.
Any idea what is wrong?
I can change the gamma setting with the same code but with no error.
The camera is a FLIR USB3 camera if that makes any difference.
  1 comentario
dpb
dpb hace alrededor de 1 hora
What is wrong is you're trying to set a read-only property.
If this is a frame grabber, you probably can only set a frame rate.

Iniciar sesión para comentar.

Respuestas (1)

Happy PhD
Happy PhD hace alrededor de 14 horas
The solution this was to use videoinput instead of imaq.VideoDevice. With src.getselectedsource one can set the parameters of the devic.

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by