There is lots of ways to bake the NV cake, best read the help file to determine which 1 suits your application.
Select the function block in the component library
"Non-Volatile Memory Dynamic" or "Non-Volatile Memory Dynamic with Default" in particular
They are found in Component > Connections > Non-Volatile Memory Dynamic
Once component is selected press your F1 key on the board, this will pop up help file and the examples on how to use can be found in there, look in the menu on left, Example 1, 2 and 3 etc.