Problem restoring backup
KSP
✭
This question has been posted before but there has not been a useful answer.
I'm trying to implement the functions Backup and Restore from the Controller class.
The Backup functions works correctly and I'm able to create a backup with the function.
But when I'm trying to restore the backup it gives the following exception: "Value does not fall within the expected range.".
When I try to restore the same backup using the restore function from the flexpendant it works fine.
I have the correct masterships (both Rapid and Configuration), the correct rights (UAS_RESTORE) and the controller is in auto mode.
Does somebody know the solution for this problem?
0
Comments
-
I found the solution for my problem.
The string that I gave to the Controller.Restore() function as parameter was wrong.I had to add "ctrl:" to the string that I gave as path.Example: (this gave the "Value does not fall within the expected range." error)string path = "C:/BACKUP/TestBackup/";mController.Restore(path);This has to be:string path = "ctrl:C:/BACKUP/TestBackup/";mController.Restore(path);0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings