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.


Increment current resource count


incrementResourceCount(arduinoObj, resourceName)



incrementResourceCount(arduinoObj, resourceName) increments count of the specified resource instances by one and returns the updated count. Call this function after you create an object.


collapse all

Increment the resource count of servo created with the parent arduino object.

arduinoObj = obj.Parent;			% In the constructor
incrementResourceCount (arduinoObj, 'servo')

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 resource to increment, specified as a character vector.

Introduced in R2015b