ToApp
Send data to method of app
Libraries:
Simulink Support Package for Apple iOS Devices /
Advanced
Description
The ToApp block sends data to a method defined in the
InfoViewController.mm
class of an Apple iOS app. After code generation is
completed, you can modify the generated code to make use of the data given as input to this
block and call a method.
For example, if the block input is int32(ones(3,1))
and the method name
is ToAppFcn
, then the expected method in the Apple iOS app code
is:
-(void) ToAppFcn: (int*) inData
inData
is an integer vector of three elements.Note
During simulation with no hardware connected, this block does nothing. For more information, see Block Produces Zeros or Does Nothing in Simulation.
Ports
Input
Parameters
Version History
Introduced in R2015a