Raptor:Data Logging Write
Return to the main Raptor page
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. |