Main Content

incrementResourceCount

Increment current resource count

Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.

Description

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.

example

Examples

collapse all

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

arduinoObj = obj.Parent;			% In the constructor
incrementResourceCount (arduinoObj, 'servo')
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 resource to increment, specified as a character vector.

Version History

Introduced in R2015b