Main Content

getSharedResourceProperty

Get shared resource property

Description

example

getSharedResourceProperty(arduinoObj, resourceName, propertyName) retrieves shared property value of all objects of the same resource.

Examples

collapse all

Retrieve the mode of all spidev objects.

arduinoObj = obj.Parent;
getResourceProperty(arduinoObj, 'spidev', 'Mode');
ans = 
1

Input Arguments

collapse all

Arduino object, specified as an object that is an internal variable called from within classes that derive from matlabshared.addon.LibraryBase.

Name of shared resource, specified as a character vector.

Name of shared property to retrieve, specified as a character vector.

Version History

Introduced in R2015b