Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Restoring a backup
KSP
✭
I have another problem with restoring a backup on the controller from my C# program.
I'm able to restore a backup to the controller by just using the Controller.Restore(path) function.
The problem is that when the function Controller.Restore executes it immediately returns 'true' but meanwhile the controller is still restoring / restarting.
The question is, is it possible to wait (using a while loop or event or something) until the controller is finished with restoring the backup.
Code example:
Cursor.Current = Cursors.WaitCursor;
Controller.Restore(path);
// Here I want some code that waites until the controller is finished with restoring
// the backup.
Cursor.Current = Cursors.Default;
Hope on some good answers 
0
Comments
-
I played around with this and could not find a event like BackupCompleted to let you know that the restore was complete. Which I am sure you already found that out.
Something that might work is to use networkWatcher.Lost to watch for when the controller reboots. When the restore is complete it auto reboots the controller and you could watch for that. Just a ideal, I did not try it but maybe it will work...
0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings