TalkBack Write
Add-On Required: This feature requires the Simulink Support Package for Android Devices add-on.
Libraries:
Simulink Support Package for Android Devices /
Communication
Description
The TalkBack Write block writes command(s) to a TalkBack ID on the ThingSpeak TalkBack server. The command(s) are written and executed from the TalkBack queue in the first-in first-out (FIFO) order and are removed from the queue once executed.
Ports
Input
trigger — Trigger to add or delete command in TalkBack queue
0
| 1
Trigger input that allows to add a command to the TalkBack queue or delete all commands from the TalkBack queue.
Data Types: Boolean
| Numeric
command string — Input TalkBack string command
scalar
TalkBack command of type string, specified as a scalar.
Dependencies
To enable this port, set Command type to
String
.
Data Types: string
ascii command — Input TalkBack ASCII command
vector
Converted uint8
vector TalkBack command of ASCII characters,
specified as a vector.
Dependencies
To enable this port, set Command type to
ASCII vector
.
Data Types: uint8
position — Position of command in queue
integer
Position of the TalkBack command in the TalkBack queue. Any previous commands at or after this position are shifted down. If the position is left blank, the command is automatically added to the end of the queue with the highest position.
Dependencies
To enable this port, select the Specify position parameter.
Data Types: uint16
Parameters
TalkBack API — Add or delete commands in TalkBack queue
Add a command
(default) | Delete all commands
Select the type of operation you want to perform on the TalkBack commands in the TalkBack queue.
Add a command
– Add a command to the TalkBack queueDelete all commands
– Delete all commands from the TalkBack queue
TalkBack ID — TalkBack app identification number
123456 (default) | positive integer
Enter the identification number for the TalkBack app. This identification number is auto generated by the TalkBack server. To know the TalkBack ID for your ThingSpeak™ TalkBack:
In the ThingSpeak website, select Apps > TalkBack.
Click New TalkBack.
Add a new command to the TalkBack queue and copy the TalkBack ID.
Open the TalkBack Write block in your Simulink® model and paste the value into the TalkBack ID parameter.
API key — Auto-generated API key for ThingSpeak TalkBack
ABCDEFGHIJKLMOP (default) | character vector of API key | string scalar of API key
Enter the 16-digit API key for the specific instance of TalkBack that allows you to write to a ThingSpeak TalkBack. This API key is auto generated by the TalkBack server. This key allows you to write commands to ThingSpeak TalkBack. To know the API key for your ThingSpeak TalkBack:
In the ThingSpeak website, select Apps > TalkBack.
Click New TalkBack.
Add a new command to the TalkBack queue and copy the 16-digit API key.
Open the TalkBack Write block in your Simulink model and paste the value into the API key parameter.
Command type — Type of TalkBack command input added to TalkBack queue
String
(default) | ASCII vector
Select the type of TalkBack command input to be added to the TalkBack queue.
String
– TalkBack command in string format.ASCII vector
– TalkBack command in ASCII format.
Specify position — Enable or disable position input port
off (default) | on
Select the option to enable the position input port of the block.
Version History
Introduced in R2021b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)