Raptor:Data Logging Write: Difference between revisions

From NewEagleWiki
Jump to navigation Jump to search
 
No edit summary
 
Line 6: Line 6:


== Description ==
== Description ==
<p>This block is used to write a value to the data log.</p>
<p>This block works with onboard FLASH datalogging memory (if available) on the selected ECU target. This block will write to a data log, given the address and data, as well as the size that each message will be written. The write (size) must not cross a sector boundary (e.g. 16kb), multiple writes should be used in such a case.</p>
 
<p>Models configured for targets which do not support this feature will print an error message to diagnostic output on model update or compilation.</p>
 
<p>The address input will be used as an offset to the base address of the datalog flash memory region of the controller automatically. For example, if the datalog flash memory region of the targeted controller starts at address 0x80000000, providing 0 to the address input of the block will write N bytes starting at address 0x80000000, where N is the value of the Size internal block parameter.</p>


== Inputs ==
== Inputs ==
Line 17: Line 21:
! Address
! Address
| uint32
| uint32
|
| Address (offset from base address of datalog flash region) at which to begin the write.
|-
|-
! Data
! Data
| uint8
| uint8
|
| Array of data to be written.
|}
|}


Line 32: Line 36:
|-
|-
! Status
! Status
|  
| uint8
|  
| Status of the operation: 0 - Failure, 1 - Success
|}
|}


Line 45: Line 49:
! Size
! Size
| Number
| Number
|  
| The size of the data in bytes.
|}
|}

Latest revision as of 13:37, 13 September 2023

Return to the main Raptor page

Return to Data Logging page

Raptor™ Data Logging Write

Description

This block works with onboard FLASH datalogging memory (if available) on the selected ECU target. This block will write to a data log, given the address and data, as well as the size that each message will be written. The write (size) must not cross a sector boundary (e.g. 16kb), multiple writes should be used in such a case.

Models configured for targets which do not support this feature will print an error message to diagnostic output on model update or compilation.

The address input will be used as an offset to the base address of the datalog flash memory region of the controller automatically. For example, if the datalog flash memory region of the targeted controller starts at address 0x80000000, providing 0 to the address input of the block will write N bytes starting at address 0x80000000, where N is the value of the Size internal block parameter.

Inputs

Input Type Description
Address uint32 Address (offset from base address of datalog flash region) at which to begin the write.
Data uint8 Array of data to be written.

Outputs

Output Type Description
Status uint8 Status of the operation: 0 - Failure, 1 - Success

Parameters

Parameter Type Description
Size Number The size of the data in bytes.