Main Content

getResourceOwner

Get terminal resource owner

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

Description

getResourceOwner(arduinoObj, terminal) returns the resource owner of the specified terminal.

example

Examples

collapse all

Get resource owner for terminal 14 on your arduino object.

arduinoObj = obj.Parent
getResourceOwner(arduinoObj, 14)
ans = 
'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.

Physical terminal number on Arduino hardware, specified as a double. For more information see Physical Terminals and Pin Numbers.

Version History

Introduced in R2015b