Preview while waiting for Trigger

3 Ansichten (letzte 30 Tage)
simonc
simonc am 2 Sep. 2022
Beantwortet: Yash Srivastava am 16 Sep. 2022
I'm trying to use the Image Acquisition Toolbox to control my camera. Everything works well, but one problem for when I use the trigger option is that I can't see what the camera is currently displaying until the trigger starts. For my particular application, that is somewhat limiting, so I was wondering if it is possible to do something like this :
  • I press "start", a live preview appears and the camera is waiting for the hardware trigger
  • While the hardware trigger is on, the images get saved
  • After that, the camera goes back into preview mode and waits for the next trigger (this is not really essential, but would be nice)
Is there any way to do so?
Thanks in advance!

Antworten (1)

Yash Srivastava
Yash Srivastava am 16 Sep. 2022
I am assuming that you want the camera to display live preview when the hardware trigger is enabled.
So, internally this is how the trigger works -
If the videoinput object is set for hardware trigger, the trigger is not immediately applied to hardware, preview will continue to run as the videoinput stays in immediate acquisition mode. Once videoinput-start is executed, the camera is set for hardware trigger acquisition and after this the camera will send images only when the external trigger event occurs. So, preview will display frames only when camera streams data to IMAQ.
This is the expected behavior with IMAQ and hardware trigger setup.
Please refer to the following documentation for more information on specifying trigger type.

Community Treasure Hunt

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

Start Hunting!

Translated by