主要内容

Communication interface

Options for ThingSpeak block to connect to ThingSpeak server

Model Configuration Pane: Hardware Implementation / Hardware board settings / Target hardware resources / External mode

Description

Use the ‘serial’ option to run your model in the External mode with serial communication.

When running a model in External mode over serial, Simulink® generates error if the Hardware Serial Port parameter is set to Serial 0. The error is generated because the External mode uses serial port 0 to communicate with the Arduino® board by default. Browse to WiFi properties, and ensure that the Hardware Serial Port parameter is set to a port other than Serial 0.

Warning

External mode over XCP on WiFi on Simulink models having more than 3 multirate systems result in a connection error.

Settings

Serial — For AVR-based boards | XCP on Serial — For ARM-based boards

Default:

  • Serial — For AVR-based boards

  • XCP on Serial — For ARM-based boards

  • Serial

  • TCP/IP

  • WiFi

  • XCP on Serial

  • XCP on TCP/IP

  • XCP on WiFi

Programmatic Use

No programmatic use is available.

Version History

Introduced in R2015b