MotoHawk:Blocks:Store NonVolatile Data

From MotoHawk
Jump to navigationJump to search

NonVolatile Store

When this MotoHawk™ block is triggered, all NonVolatile definitions are saved to EEPROM, for later restoration.

Block ID

motohawk_store_nvmem

Library

MotoHawk_lib/Data Storage Blocks

Description

Store NonVolatile Data.PNG

When triggered, all NonVolatile definitions are saved to EEPROM, for later restoration. Note that if your model contains a Main Power Relay block from the Extra Development Blocks library, it will perform this action at controlled shutdown, prior to switching off the relay.

This action stores Data Defined as Non-Volatile only. This would be NV data defined through a Data Definition block, Calibration NV, or Display NV. Calibration data is stored at a call to the shutdown event only, not through the use of this block.

Prior to MotoHawk 2012b Beta 4, Fixed NV data was not stored through the Store NonVolatile Data block and was only stored in the Shutdown event. A change was made so that in MotoHawk 2012b Beta 4 and higher, the Store NV Data block stores both Fixed and Non-Fixed NonVolatile data.

When using a buffered EEPROM block, the store NV block can still exist anywhere and be executed in any task, however the difference is that the actual storage procedure always happens in the shutdown task.

Block Parameters

This MotoHawk™ block has no user-definable parameters.