Send data to a method of the app


Send data to a method defined in the Apple iOS app’s 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