FromApp
Receive data from method of iOS app
Libraries:
Simulink Support Package for Apple iOS Devices /
Advanced
Description
The FromApp block receives data from 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 configure the Method
name, Data type, and Data size (N)
parameters to match those of the method.
For example, consider a method, -(int*)FromAppFcn: (void)
, that returns
three data elements each time it runs, and the data type of the elements is
int32
. In this case, set these parameter values.
Method name to
FromAppFcn
Data size to
3
Data type to
int32
The method in the Apple iOS app must return a data type that this block can accept.
Note
During simulation with no hardware connected, this block does nothing. For more information, see Block Produces Zeros or Does Nothing in Simulation.
Ports
Output
Parameters
Version History
Introduced in R2015a