Main Content

Troubleshoot Working with Persistent Variables

When I run the getPersistentVariables function or setPersistentVariables function, I see this error:

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 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