- Install VeriStand Model Generation Support 23.8 in the Matlab Add-Ons.
- Enable states in Simulink Settings.
- Use VeriStand -> Logging Specification -> Add channels to select the channels you want to save and restore the values.
- Save/restore the model.
On Windows Controller:
It is quite easy to save and restore the simulation states on the UI Manager Screen. When the Model Command is changed to
Save, a
Select Path to XML File dialog will be open to save the simulation state. Then, change the Model Command to
Start to re-start the model execution. When the Model Command is changed to
Restore, a
Select Path to XML File dialog will be open to select a saved XML file.
On Linux RT Controller:
We need to use the workspace screen to save/restore the model and provide the path as
c:/ni-rt/NIVeristand/Logs/test.xml.