[PC SDK] Restoring Backup Programatically

HM
✭
Hi,
I'm trying to restore a backup with the Controller.Restore function, but I'm having a "Wait for mode failed" exception when the controller restarts. The code i'm using, following the remarks of the restore reference (Requires mastership of Rapid and Configuration domains. Requires UAS_RESTORE grant. Requires Auto mode.) is:
using (Mastership m = Mastership.Request(cont.Rapid))
using (Mastership m2 = Mastership.Request(cont.Configuration))
{
cont.Restore(backup_path);
}
Any idea? Regards,
HM
0
Categories
- All Categories
- 5.6K RobotStudio
- 398 UpFeed
- 20 Tutorials
- 13 RobotApps
- 300 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 330 IRC5
- 66 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 826 RAPID Programming
- 10 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings