Raptor:LIN Rx Message: Difference between revisions

From NewEagleWiki
Jump to navigation Jump to search
(Created the LIN Rx Message Page)
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:


== Description ==
== Description ==
<p>The LIN Rx Message block uses a frame definition from the LDF file associated with the LIN Bus definition block to receive and interpret the frame on the specified bus. The reception is scheduled according to the LIN frame schedule.
<p>The LIN Rx Message block uses a frame definition from the LDF file associated with the LIN Bus definition block to receive and interpret the frame on the specified bus.
</p>
The reception is scheduled according to the LIN frame schedule.
 
One Simulink Function can be triggered directly from this block, as if a LIN Trigger block had been used.
The Simulink function should be placed somewhere along the calling block's path to model root.</p>
 
== Outputs ==
{| class="wikitable" style="width:31%;"
|-
! scope="col" style="width: 15%;"|Output
! scope="col" style="width: 10%;"|Type
! scope="col" style="width: 70%;"|Description
|-
! Signal(s)
| uint32
| Any signals from the .ldf for this message.
|}


== Parameters ==
== Parameters ==
Line 18: Line 33:
! LIN Bus Name
! LIN Bus Name
|
|
| Provides the logic LIN bus name on which to transmit.
| Provides the logic LIN bus name on which to receive.
|-
|-
! Frame
! Frame
|
|
| Identifies the frame that block will be configured to transmit, the frames are defined in the LDF file associated with the named LIN Bus.
| Identifies the frame that block will be configured to receive, the frames are defined in the LDF file associated with the named LIN Bus.
|-
|-
! Label wires with channel names
! Label wires with channel names
Line 35: Line 50:
| Checkbox
| Checkbox
| Adds a port indicating the age of the last receive message, count of subsystem executions.
| Adds a port indicating the age of the last receive message, count of subsystem executions.
|-
! Use Simulink Function Callback
| checkbox
| Whether to use a Simulink Function callback with this block's frame.
This works the same as using a LIN Trigger block with a priority of 0.
|-
! Simulink Function Name
| String
| Name of the Simulink Function to call when this block is triggered.
|-
! Create
| button
| Create a Simulink Function to use with the LIN block.
Must first provide a valid function name.
|-
! Update
| button
| Update the listed Simulink Function's signature to 0 inputs & 0 outputs.
The Simulink Function listed in the box must already exist.
|}
|}

Latest revision as of 19:20, 13 September 2023

Return to the main Raptor page

Return to LIN page

Raptor LIN Rx Message Block

Description

The LIN Rx Message block uses a frame definition from the LDF file associated with the LIN Bus definition block to receive and interpret the frame on the specified bus. The reception is scheduled according to the LIN frame schedule. One Simulink Function can be triggered directly from this block, as if a LIN Trigger block had been used. The Simulink function should be placed somewhere along the calling block's path to model root.

Outputs

Output Type Description
Signal(s) uint32 Any signals from the .ldf for this message.

Parameters

Parameter Type Description
LIN Bus Name Provides the logic LIN bus name on which to receive.
Frame Identifies the frame that block will be configured to receive, the frames are defined in the LDF file associated with the named LIN Bus.
Label wires with channel names Checkbox Enable this to automatically name the wires on the input ports with the names of the signals
Include Raw Outputs Checkbox Adds a port for each output signal providing the raw, unscaled bit value of the field.
Show Age Output Checkbox Adds a port indicating the age of the last receive message, count of subsystem executions.
Use Simulink Function Callback checkbox Whether to use a Simulink Function callback with this block's frame.

This works the same as using a LIN Trigger block with a priority of 0.

Simulink Function Name String Name of the Simulink Function to call when this block is triggered.
Create button Create a Simulink Function to use with the LIN block.

Must first provide a valid function name.

Update button Update the listed Simulink Function's signature to 0 inputs & 0 outputs.

The Simulink Function listed in the box must already exist.