Raptor:Calc Checksum Block
Return to the main Raptor page
Description
This block is used to calculate the checksum of memory segments in the controller. These checksums can be used to validate that the the data stored in a memory segment has not changed. The block uses the CRC16-CCITT method to calculate the checksum. Due to the computationally intense nature of this algorithm the checksum is calculated incrementally over multiple executions of this block. This means that the Calculate Checksum block must be in a regularly triggered subsystem. The value of the checksum can be read using the Read Checksum block.
The available memory segments are detailed below.
Memory Segments
Segment | Description |
---|---|
Constant (FLASH) Variables | This memory segment includes all data in the Constant location including calibrations if set to Constant. |
NonVolatile (EEPROM) Variables | This memory segment includes all data in the NonVolatile location including calibrations is set to NonVolatile. |
Calibration Variables | This memory segment includes all data in the Calibration location. This does not include all items in the memory location that the calibration is stored in. |
Code | This memory segment includes all the generated code for the model. |
Parameters
Parameter | Type | Description |
---|---|---|
Name | String | Defines the name of this memory checksum to be used with the read checksum block. |
Constant (FLASH) Variables | Includes the constant memory segment in the checksum. | |
NonVolatile (EEPROM) Variables | Includes the non volatile memory segment in the checksum. | |
Calibration Variables | Includes calibration data in the checksum. | |
Code | Includes the executed code in the checksum. | |
Execution Mode | Chooses whether the checksum calculates once on startup or continuously. |