Main Content

Troubleshoot Working with Persistent Variables

When running the getPersistentVariables function or setPersistentVariables function, this error appears:

Cannot parse the file that stores persistent variables from 
target computer. To clear the issue, delete all persistent 
variables on target computer. For more information, see 
Troubleshoot Working with Persistent Variables.

What This Issue Means

This error message indicates that the file on the Speedgoat® target computer that stores the persistent variable values is corrupted or unreadable.

Try This Workaround

To resolve this issue, clear the persistent variable values that are stored on the target computer.

  1. On the development computer, create a Target object tg and connect to the target computer.

    tg = slrealtime;
    connect(tg);
  2. Use the setPersistentVariables function to clear the persistent variable values that are stored on the target computer.

    setPersistentVariables(tg,[]);

See Also

| | |

Related Topics