Unable to use 'getdata' fucntion in MATLAB 2017A for image acquisition.

1 visualizzazione (ultimi 30 giorni)
I am trying to acquire frames from a camera in Real time using the Image acquisition for further analysis(programtically and not using the app). I use the function 'getdata' to bring the images into the MATLAB workspace and it works fine with 2019B version of MATLAB. I initially worked with MATLAB2019B but now due to other constraints i am trying to implement the same set up using MATLAB 2017A and now I am unable to use the 'getdata' fucntion to do the same thing. I get the follwing error.
Error using imaqdevice/getdata (line 154)
GETDATA timed out before FRAMES were available.
Error in manual_trigger_2017A (line 16)
[signalData, time, meataData] = getdata(vid,1, 'uint16','cell');
I would like to know why the same lines of code which works fine in 2019B and does not work in 2017A. Does 'getdata' function have some sort of constraints with respect to the verison of matlab or is it something else wrong in my code??
I have my code attached and eagrely looking forward to some assistance.

Risposte (1)

Walter Roberson
Walter Roberson il 13 Gen 2020
It was a bug in that release, if my memory is correct.
  2 Commenti
Malavika Nadathur Venugopal
Thank you for the response. I would like model a simple sytsem using a FLIR Thermal camera in SIMULINK in which i am trying to acquire frames continuosuly from the camera using the 'From video device ' block in simulink. I would like to further process this incoming data. But i have no option to controll the acquisition using FramesPerTrigger etc.. how do i further proceed. How do i know how many frames have been acquired and what is the format of data that has been acquired etc.. I went through the guidelines but nothing in specific to SIMULINK is available.

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by