Stream Write¶
![]()
This blocks allows to write chosen data to a model's 'StreamIn' interface.
This block is triggered when the 'En' input port goes from zero to a non-zero value (rising edge). The stream data's length in bytes must be a multiple of 4 to match the 32-bit word length.
Ports¶
| Port | Type | Description |
|---|---|---|
En |
input | enables port |
Parameters¶
| Parameter | Description |
|---|---|
| StreamData | the data to write |
Example values for the Stream Data expression:
| StreamData | Description |
|---|---|
| uint32(100) | Send one word (unsigned integer) |
| single(1:100) | Send an array of single-precision floats |
| load("x.mat").x | Send the content of a .mat file |
| myVariable | Send the content of a variable |