How can I view device-specific properties in the code suggestions of a device in Image Acquisition Toolbox and MATLAB R2024b?

4 views (last 30 days)

I am using MATLAB R2024b and Image Acquisition Toolbox to configure device-specific properties of an image acquisition device.
Using a "videosource" object, I want to leverage tab completion to get a list of the device's properties. In the MATLAB Editor, I use the following code to see the list of properties:

>> vid = videoinput("winvideo");
>> src = getselectedsource(vid);
>> src.
However, when I press the "Tab" key after typing the dot, the device-specific properties do not appear in the list of code suggestions.
How can I view the device-specific properties using tab completion?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 23 Apr 2025
As of MATLAB R2024b, this is expected behavior. Since device-specific properties vary for each device, these properties are unknown until a connection to the device is established. Therefore, MATLAB is unable to display the device-specific properties until the device is connected.
However, the device-specific properties will be displayed if a connection to the device has been established and a "videosource" object exists in the workspace. This can be accomplished by executing the connection code before using tab completion on the "videosource" object.

More Answers (0)

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!