Persistent Variable Write
R2026bLibraries:
Simulink Real-Time /
Target Management
Description
The Persistent Variable Write block writes a value to the selected persistent variable when the real-time application starts and stops. The variable value persists when the Speedgoat® target computer is shut down.
Use the getPersistentVariables function and setPersistentVariables function to access the persistent variable values on the
target computer.
Examples
Ports
Input
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"slrealtimetgmanagement/Persistent Variable Write"
Example: add_block("slrealtimetgmanagement/Persistent Variable Write","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2022a
