TalkBack Write
Add-On Required: This feature requires the Simulink Support Package for Raspberry Pi Hardware add-on.
Libraries:
Simulink Support Package for Raspberry Pi Hardware /
Internet Of Things
Description
The TalkBack Write block writes command(s) to a TalkBack ID on the ThingSpeak TalkBack server. The block writes commands to 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
| any value greater than 0
Input to the TalkBack queue or delete all commands in the TalkBack queue.
Data Types: Boolean
| Numeric
Command string — String command to be added by the block
scalar
String command to be added by the block specified as a scalar.
Dependencies
To enable this port, set Command type to
String
and TalkBack
API to Add a command
.
Data Types: string
Ascii command — ASCII command to be added by the block
vector
ASCII command to be added by the block, specified as a vector.
Dependencies
To enable this port, set Command type to
ASCII vector
and TalkBack
API to Add a command
.
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 in the queue, if you do not specify a position. The block adds the command to the end of the queue with the highest position.
Dependencies
To enable this port, set the TalkBack API
parameter to Add a command
and 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 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 of the TalkBack app. This identification number is autogenerated by the TalkBack server. To find the TalkBack ID for your TalkBack channel:
On 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 in the TalkBack ID parameter.
API key — Autogenerated API key for TalkBack channel
ABCDEFGHIJKLMNOP (default) | character vector | string scalar
Enter the 16-digit API key for the specific instance of TalkBack that allows you to write to a TalkBack channel. This API key is autogenerated by the TalkBack server. To find the API key for your TalkBack channel:
On 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 in the API key parameter.
Command type — Type of command added to TalkBack queue
String
(default) | ASCII vector
Select the type of TalkBack command you want the block to add to the TalkBack queue.
String
— TalkBack command in string format.ASCII vector
— TalkBack command in ASCII format.
Dependencies
To enable this port, set the TalkBack API
parameter to Add a command
.
Specify position — Enable or disable position input port
off (default) | on
Select the option to enable the position input port of the block.
Dependencies
To enable this port, select the TalkBack API
parameter to Add a command
.
Print diagnostic messages — Save TalkBack server response to log file
off (default) | on
Select this parameter to save the response from the TalkBack server to a log file
for each read request. Identify this request with a header named
TALKBACK_DIAG_MSG:
. The name of the log file has the format
<model_name>.log
.
Version History
Introduced in R2021b
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
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)