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.

ToApp

Send data to a method of the app

Description

Send data to a method defined in the Apple iOS app’s InfoViewController.mm class.

For example, suppose the following:

  • The block input is int32(ones(3,1))

  • The method name is ToAppFcn

Then, the expected method in the Apple iOS app would be:

-(void) ToAppFcn: (int*) inData
Where inData is an integer array of three elements.

The block supports the following input data types: uint8, int8, uint16, int16, uint32, int32, single, and double.

During simulations without hardware, this block does nothing. See Block Produces Zeros or Does Nothing in Simulation (Simulink).

Dialog Box

Method name

Specify the name of a method in the Apple iOS app. The method must accept the data type of the block output data.

See Also

Introduced in R2015a