Matlab unable to change frame rate
25 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
So, I am using the DFK 33UX290 Imaging Source Camera through MATLAB. The camera offers many frame rates that I can see through imaqtool GUI or even gather the values through
propinfo(src,'FrameRate')
However, when I am trying to set the frame rate to a different value (say the lowest frame rate of 1.000, either through imaqtool or by using
src.FrameRate = '1.000';
MATLAB always ends up using the maximum frame rate. Even in the preview vdieo, I expect the video to be very slow at such low frame rates but MATLAB shows a normal video, besides displaying that it is showing the video with the highest possible frame rate. Even when I am capturing, say 10 frames at 100 frames per trigger (1 trigger) at 1.000 frame rate, I would expect the capturing time should be 10s. However, it gets captured in a split of a second and thus it can be concluded that MATLAB is not actually changing the frame rate even if I ask it to do so? I have not tried to see if this issue remains with other cameras as well but my Imaging Source camera defitely has this issue. To note, when I am using the default Imaging Source Software, there is no such frame rate inconsistency issue.
Is it the problem of the firmware that MATLAB and the camera hardware is not communicating or it is a issue with MATLAB itself? Kindly help!
0 Commenti
Risposte (1)
AG
il 10 Feb 2020
Modificato: AG
il 10 Feb 2020
Try using exactly the same string as is obtained from the camera.
% use 'set' to return the cell array of values accepted by the camera. Yes use 'set' to get this
frameRates = set(selectedsrc, 'FrameRate');
% then choose whichever value from the cell array that you want
% in this example it is the fastest frame rate, but change {1} to the value you want, i.e., {4}
set(selectedsrc, 'FrameRate', frameRates{1});
% then test to see if it is in fact set as you expect
get(selectedsrc, 'FrameRate')
Vedere anche
Categorie
Scopri di più su Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!