Raptor-Dev-Display-Drawing-Functions: Difference between revisions

From NewEagleWiki
Jump to navigation Jump to search
 
No edit summary
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[RaptorWiki|Return to the main Raptor page]]
{{DISPLAYTITLE:Raptor-Dev Display Drawing Functions}}
{{Navigation}} [[Raptor-Platform | Raptor Platform]] > [[Raptor-Dev | Raptor-Dev]] > [[Raptor-Dev-Display-Libraries|Raptor-Dev Display Libraries]] > '''Raptor-Dev Display Drawing Functions'''


[[Raptor:J1939|Return to J1939 page]]
[[File:RaptorDisplayDrawingFunctions.png|right|frame|Raptor™ Display Drawing Functions]]
 
<p>The blocks in this subsystem are used to draw elements on the screen. The blocks can be linked together using the previous/next ports to ensure the execution order of the drawing commands.</p>
[[File:RaptorJ1939DMMessages.JPG|right|frame|Raptor™ J1939 DM Messages]]
<p>The DM messages blocks implement all of the necessary J1939 diagnostic messages to create an OBD compliant system. Many of the DM messages bloks interact directly with the Raptor OBD Fault Manager to query fault information. The use of these blocks requires the Raptor OBD Fault Manager to be included in the model as well as three Custom Field Definitions for the SPN, FMI, and Occurred Count of each fault. The data types of these fields should be uint32 for SPN and uint8 for FMI and Occurred Count.</p>


<h1>Blocks</h1>
<h1>Blocks</h1>
Line 14: Line 13:
! scope="col" style="width: 25%;"| Appearance
! scope="col" style="width: 25%;"| Appearance
|-  
|-  
! <h5>[[Raptor:DM1|DM1]]</h5>
! Clear Rectangle
| <p>This block implements PGN 65226 Active Diagnostic Trouble Codes (DM1). This block works with the Raptor OBD Fault Manager and sends all the faults in the confirmed state. Use the raptor_j1939_spn_write block with SPNs 1213, 623, 624, 987, 3038, 3039, 3040 to set the lamp statuses.</p>
| <p>This block clears a specified rectangle from the screen.</p>
| [[file:RaptorDM1.jpg|frameless|border|DM1 Transmit block|center]]
| [[file:RaptorDisplayClearRectangle.jpg|frameless|border|Clear Screen block|center]]
|-
|-  
! <h5>[[Raptor:DM2|DM2]]</h5>
! <h5>[[Raptor:Display Clear Screen|Clear Screen]]</h5>
| <p>This block implements PGN 65227 Previously Active Diagnostic Trouble Codes (DM2). This block works with the Raptor OBD Fault Manager and sends all the faults in the previously active state. Use the raptor_j1939_spn_write block with SPNs 1213, 623, 624, 987, 3038, 3039, 3040 to set the lamp statuses.</p>
| <p>This block clears both layers of the screen.</p>
| [[file:RaptorDM2.jpg|frameless|border|DM2 Transmit block|center]]
| [[file:RaptorDisplayClearScreen.png|frameless|border|Clear Screen block|center]]
|-
|-  
! <h5>[[Raptor:DM3|DM3]]</h5>
! <h5>[[Raptor:Display Draw Arc|Draw Arc]]</h5>
| <p>This block implements PGN 65228 Diagnostic Data Clear/Reset of Previously Active DTCs (DM3). This block outputs a function call when the PGN is requested. The function call should be connected to a subsystem which clears the appropriate faults.</p>
| <p>This block draws an arc on the screen.</p>
| [[file:RaptorDM3.jpg|frameless|border|DM3 Rx Trigger block|center]]
| [[file:RaptorDisplayDrawArc.png|frameless|border|Draw Arc block|center]]
|-
|-  
! <h5>[[Raptor:DM4|DM4]]</h5>
! <h5>[[Raptor:Display Draw Circle|Draw Circle]]</h5>
| <p>This block implements PGN 65229 Freeze Frame Parameters (DM4). The input to this block is a vector of type uint8 which contains the contents of the DM4 message according to the J1939 specification.</p>
| <p>This block draws a circle on the screen.</p>
| [[file:RaptorDM4.jpg|frameless|border|DM4 Transmit block|center]]
| [[file:RaptorDisplayDrawCircle.png|frameless|border|Draw Circle block|center]]
|-
|-  
! <h5>[[Raptor:DM5|DM5]]</h5>
! <h5>[[Raptor:Display Draw Image|Draw Image]]</h5>
| <p>This block implements PGN 65230 Diagnostic Readiness 1 (DM5).</p>
| <p>This block draws an image in the screen.</p>
| [[file:RaptorDM5.jpg|frameless|border|DM5 Transmit block|center]]
| [[file:RaptorDisplayDrawImage.png|frameless|border|Draw Image block|center]]
|-
|-  
! <h5>[[Raptor:DM6|DM6]]</h5>
! <h5>[[Raptor:Display Draw Line|Draw Line]]</h5>
| <p>This block implements PGN 65231 Pending DTCs (DM6). This block works with the Raptor OBD Fault Manager and returns all the faults in the pending state which are defined as emissions-related. Use the raptor_j1939_spn_write block with SPNs 1213, 623, 624, 987, 3038, 3039, 3040 to set the lamp statuses.</p>
| <p>This block draws a line on the screen.</p>
| [[file:RaptorDM6.jpg|frameless|border|DM6 Transmit block|center]]
| [[file:RaptorDisplayDrawLine.png|frameless|border|Draw Line block|center]]
|-
|-  
! <h5>[[Raptor:DM7|DM7]]</h5>
! <h5>[[Raptor:Display Draw Polygon|Draw Polygon]]</h5>
| <p>This block implements PGN 58112 Command Non-Continuously Monitored Test (DM7). This block implements the base of the DM7 message. Additional blocks will be needed inside to interface to the correct code to perform the requested test. Without modification, no tests are supported and all requests will cause a NACK response. The block will indicate, based on the Test Identifier if a DM8 or DM30 response is required, based on J1939-73 5.7.7.1 (Test Identifier).</p>
| <p>This block draws a polygon on the screen. The points of the polygon are in X,Y pairs.</p>
| [[file:RaptorDM7.jpg|frameless|border|DM7 Receive block|center]]
| [[file:RaptorDisplayDrawPolygon.png|frameless|border|Draw Polygon block|center]]
|-
|-  
! <h5>[[Raptor:DM8|DM8]]</h5>
! <h5>[[Raptor:Display Draw Rectangle|Draw Rectangle]]</h5>
| <p>This block implements PGN 65232 Test Results For Non-Continuously Monitored Systems (DM8).</p>
| <p>This block draws a rectangle on the screen.</p>
| [[file:RaptorDM8.jpg|frameless|border|DM8 Transmit block|center]]
| [[file:RaptorDisplayDrawRectangle.png|frameless|border|Draw Rectangle block|center]]
|-
|-  
! <h5>[[Raptor:DM11|DM11]]</h5>
! <h5>[[Raptor:Display Draw Text|Draw Text]]</h5>
| <p>This block implements PGN 65235 Diagnostic Data Clear/Reset for Active DTCs (DM11). This block outputs a function call when the PGN is requested. The function call should be connected to a subsystem which clears the appropriate faults.</p>
| <p>This block draws text on the screen.</p>
| [[file:RaptorDM11.jpg|frameless|border|DM11 Rx Trigger block|center]]
| [[file:RaptorDisplayDrawText.png|frameless|border|Draw Text block|center]]
|-
|-  
! <h5>[[Raptor:DM12|DM12]]</h5>
! <h5>[[Raptor:Display Element|Element]]</h5>
| <p>This block implements PGN 65236 Emissions-Related Active Diagnostic Trouble Codes (DM12). This block works with the Raptor OBD Fault Manager and sends all the faults in the confirmed state which are defined as emissions-related. Use the raptor_j1939_spn_write block with SPNs 1213, 623, 624, 987, 3038, 3039, 3040 to set the lamp statuses.</p>
| <p>This block automatically clears the portions of the screen drawn by the blocks in its FnCall output during the previous time step. It can be used in the draw foreground function to avoid the need to explicitely clear the screen. This block has some specific settings requirements for the model.</p>
| [[file:RaptorDM12.jpg|frameless|border|DM12 Transmit block|center]]
| [[file:RaptorDisplayElement.png|frameless|border|Element block|center]]
|-
|-  
! <h5>[[Raptor:DM19|DM19]]</h5>
! <h5>[[Raptor:Display Fill Circle|Fill Circle]]</h5>
| <p>This block implements PGN 54016 Calibration Information (DM19).</p>
| <p>This block draws a filled circle on the screen.</p>
| [[file:RaptorDM19.jpg|frameless|border|DM19 Transmit block|center]]
| [[file:RaptorDisplayFillCircle.png|frameless|border|Fill Circle block|center]]
|-
|-  
! <h5>[[Raptor:DM20|DM20]]</h5>
! <h5>[[Raptor:Display Fill Ellipse|Fill Ellipse]]</h5>
| <p>This block implements PGN 49664 Monitor Performance Ratio (DM20).</p>
| <p>This block draws a filled ellipse on the screen.</p>
| [[file:RaptorDM20.jpg|frameless|border|DM20 Transmit block|center]]
| [[file:RaptorDisplayFillEllipse.png|frameless|border|Fill Ellipse block|center]]
|-
|-  
! <h5>[[Raptor:DM21|DM21]]</h5>
! <h5>[[Raptor:Display Fill Polygon|Fill Polygon]]</h5>
| <p>This block implements PGN 49408 Diagnostic Readiness 2 (DM21). This block uses the SPN Library for the required SPN data.</p>
| <p>This block draws a filled polygon on the screen.</p>
| [[file:RaptorDM21.jpg|frameless|border|DM21 Transmit block|center]]
| [[file:RaptorDisplayFillPolygon.png|frameless|border|Fill Polygon block|center]]
|-
|-  
! <h5>[[Raptor:DM22|DM22]]</h5>
! <h5>[[Raptor:Display Fill Rectangle|Fill Rectangle]]</h5>
| <p>This block implements PGN 49920 Individual Clear/Reset of Active and Previously Active DTC (DM22). When a request is received this block will clear the specified fault and then trigger the User FnCall with the obdfault port set to the fault which was cleared. Any additional fault specific information that needs to be cleared or reset should be done here. After the user function has run the block will send the appropriate ACK. If the requested fault is not found or is not in the correct state, the user FnCall will not execute and the request will be appropriately NACKed.</p>
| <p>This block draws a filled rectangle on the screen.</p>
| [[file:RaptorDM22.jpg|frameless|border|DM22 Rx Trigger block|center]]
| [[file:RaptorDisplayFillRectangle.png|frameless|border|Fill Rectangle block|center]]
|-
|-  
! <h5>[[Raptor:DM23|DM23]]</h5>
! <h5>[[Raptor:Display Image Reference|Image Reference]]</h5>
| <p>This block implements PGN 64949 Previously Active Emission Related Faults (DM23). This block works with the Raptor OBD Fault Manager and sends all the faults in the previously active state which are defined as emissions-related. Use the raptor_j1939_spn_write block with SPNs 1213, 623, 624, 987, 3038, 3039, 3040 to set the lamp statuses.</p>
| <p>This block outputs an image reference which can be used with the [[Raptor:Display Draw Image|Draw Image]] or [[Raptor:Display Button Bar Setup Button|Button Bar Setup Button]] blocks.</p>
| [[file:RaptorDM23.jpg|frameless|border|DM23 Transmit block|center]]
| [[file:RaptorDisplayImageReference.png|frameless|border|Image Reference block|center]]
|-
! <h5>[[Raptor:DM24|DM24]]</h5>
| <p>This block implements SPN 64950 SPN Support (DM24). This block automatically links to the DM25 block (if available) on the specified J1939 bus to determine extended freeze frame support. Block input DM30 SPNs indicates the SPNs that are supported via a DM30 response.</p>
| [[file:RaptorDM24.jpg|frameless|border|DM24 Transmit block|center]]
|-
! <h5>[[Raptor:DM25|DM25]]</h5>
| <p>This block implements PGN 64951 Expanded Freeze Frame (DM25). This block works with the Raptor J1939 Extended Freeze Frame blocks to send freeze frame data.</p>
| [[file:RaptorDM25.jpg|frameless|border|DM25 Transmit block|center]]
|-
! <h5>[[Raptor:DM26|DM26]]</h5>
| <p>This block implements PGN 64952 Diagnostic Readiness 3 (DM26).</p>
| [[file:RaptorDM26.jpg|frameless|border|DM26 Transmit block|center]]
|-
! <h5>[[Raptor:DM27|DM27]]</h5>
| <p>This block implements PGN 64898 All Pending DTCs (DM27). This block works with the Raptor OBD Fault Manager and sends all the faults in the pending state. Use the raptor_j1939_spn_write block with SPNs 1213, 623, 624, 987, 3038, 3039, 3040 to set the lamp statuses.</p>
| [[file:RaptorDM27.jpg|frameless|border|DM27 Transmit block|center]]
|-
! <h5>[[Raptor:DM28|DM28]]</h5>
| <p>This block implements PGN 64896 Permanent DTCs (DM28). This block works with the Raptor OBD Fault Manager and sends all the faults in the permanent state which are defined as emissions-related. Use the raptor_j1939_spn_write block with SPNs 1213, 623, 624, 987, 3038, 3039, 3040 to set the lamp statuses.</p>
| [[file:RaptorDM28.jpg|frameless|border|DM28 Transmit block|center]]
|-
! <h5>[[Raptor:DM29|DM29]]</h5>
| <p>This block implements PGN 40448 DTC Counts (DM29). This block works with the Raptor OBD Fault Manager and sends number of faults in each state.</p>
| [[file:RaptorDM29.jpg|frameless|border|DM29 Transmit block|center]]
|-
! <h5>[[Raptor:DM30|DM30]]</h5>
| <p>This block implements PGN 41984 Scaled Test Results (DM30). SLOT input describes a parameters Scaling, Limits, Offset and Transfer Function, see J1939-71 Appendix A.</p>
| [[file:RaptorDM30.jpg|frameless|border|DM30 Transmit block|center]]
|-
! <h5>[[Raptor:DM33|DM33]]</h5>
| <p>his block implements PGN 41216 Emission Increasing Auxiliary Emission Control Device Active Time (DM33).</p>
| [[file:RaptorDM33.jpg|frameless|border|DM33 Transmit block|center]]
|-
! <h5>[[Raptor:DM34|DM34]]</h5>
| <p>This block implements PGN 40960 NTE Status (DM34).</p>
| [[file:RaptorDM34.jpg|frameless|border|DM34 Transmit block|center]]
|-
! <h5>[[Raptor:DTC Send|DTC Send]]</h5>
| <p>This block is used by many of the DM blocks which must return a list of faults in a given state. It should not be used without fully understanding underlying mechanisms of the Raptor OBD Fault Manager.</p>
| [[file:RaptorDTCSend.jpg|frameless|border|DTC Transmit block|center]]
|}
|}

Latest revision as of 20:46, 6 April 2015

New Eagle > Products Wiki > Raptor Platform > Raptor-Dev > Raptor-Dev Display Libraries > Raptor-Dev Display Drawing Functions

Raptor™ Display Drawing Functions

The blocks in this subsystem are used to draw elements on the screen. The blocks can be linked together using the previous/next ports to ensure the execution order of the drawing commands.

Blocks

Block Description Appearance
Clear Rectangle

This block clears a specified rectangle from the screen.

Clear Screen block
Clear Screen block
Clear Screen

This block clears both layers of the screen.

Clear Screen block
Clear Screen block
Draw Arc

This block draws an arc on the screen.

Draw Arc block
Draw Arc block
Draw Circle

This block draws a circle on the screen.

Draw Circle block
Draw Circle block
Draw Image

This block draws an image in the screen.

Draw Image block
Draw Image block
Draw Line

This block draws a line on the screen.

Draw Line block
Draw Line block
Draw Polygon

This block draws a polygon on the screen. The points of the polygon are in X,Y pairs.

Draw Polygon block
Draw Polygon block
Draw Rectangle

This block draws a rectangle on the screen.

Draw Rectangle block
Draw Rectangle block
Draw Text

This block draws text on the screen.

Draw Text block
Draw Text block
Element

This block automatically clears the portions of the screen drawn by the blocks in its FnCall output during the previous time step. It can be used in the draw foreground function to avoid the need to explicitely clear the screen. This block has some specific settings requirements for the model.

Element block
Element block
Fill Circle

This block draws a filled circle on the screen.

Fill Circle block
Fill Circle block
Fill Ellipse

This block draws a filled ellipse on the screen.

Fill Ellipse block
Fill Ellipse block
Fill Polygon

This block draws a filled polygon on the screen.

Fill Polygon block
Fill Polygon block
Fill Rectangle

This block draws a filled rectangle on the screen.

Fill Rectangle block
Fill Rectangle block
Image Reference

This block outputs an image reference which can be used with the Draw Image or Button Bar Setup Button blocks.

Image Reference block
Image Reference block