WebSocket Publish
Publish data to WebSocket server in JSON format
Add-On Required: This feature requires the Simulink Support Package for Raspberry Pi Hardware add-on.
Libraries:
Simulink Support Package for Raspberry Pi Hardware /
Network
Description
WebSocket JSON data
Ports
Input
Signal — Input data to be published
row vector
The signal data to be published to the WebSocket server, specified as a row vector.
The block provides an option to add up to 10 Signal input ports that you can use to obtain signal data, with each signal being a row vector.
Example: [1.5,3]
Data Types: single
| double
| int8
| int16
| int32
| uint8
| uint16
| uint32
| Boolean
Parameters
Server Port — Port number on WebSocket server
9000
(default) | any port number
Specify the port number on the WebSocket server on which the JSON data is hosted.
— Total number of input signal connections
1
(default) | 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10
Select the total number of input signal connections to the block, which is then converted to JSON format.
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes 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)