SFP out – SFP output mailbox
Table of Contents
The SFP output mailbox block allows sending data float (single) signals via the SFP optic cables.
The SFP output mailbox block takes data from the input port of the block and sends it via SFP. It also features a second input that triggers when to write new data.
To see how to use SFP blocks in simulation and code generation please refer to the multi-master product note.
Simulink Block
Signal specification
- The data input signal “d” supports a vector of signals of type single. The vector length can be configured with the
Number of signals
parameter. - The second signal is the
input trigger
signal. It can be used to initiate data transmission. Two modes are supported: rising edge and activate.
Parameters
Name:
defines the output mailbox name. Data will go to a SFP input mailbox block with the same name.Number of signals:
sets the vector length of the input data.Input trigger:
defines the condition when the data is to be sent. When set tonone
, data is sent at each interrupt. When set toRising edge
, data is sent on the rising edge of theinput trigger
signal. Finally, when set toActivate
, data is sent when theinput trigger
signal is high.Show simulation input port
defines if the simulation input port is displayed or not.
PLECS block
Signal specification
- The data input signal “d” supports a vector of signals of type float. The vector length can be configured with the
Number of signals
parameter. - The second signal is the
input trigger
signal. It can be used to initiate data transmission. Two modes are supported: rising edge and activate.
Parameters
Name:
defines the output mailbox name. Data will go to a SFP input mailbox block with the same name.Number of signals:
sets the vector length of the input data.Input trigger:
defines the condition when the data is to be sent. When set tonone
, data is sent at each interrupt. When set toRising edge
, data is sent on the rising edge of theinput trigger
signal. Finally, when set toActivate
, data is sent when theinput trigger
signal is high.