This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Get shared resource property


getSharedResourceProperty(arduinoObj, resourceName, propertyName)



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


collapse all

Retrieve the mode of all spidev objects.

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

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.

Introduced in R2015b