unload modules
Options
newform
✭
Dear All,
I want to unload all existing program modules on the controller programmatically. All program modules can be found iteratively and their handles are available.
To unload one module, say, aModule, we use the following code:
string fullpath = string.concat(aController.FileSystem.RemoteDirectory, "/", aModule.Name, ".mod");
aModule.SaveToFile(fullpath);
The program throw an exception - "General File Handling Error"; I have no idea about what is going on. Can anybody help me on this? Many thanks
I want to unload all existing program modules on the controller programmatically. All program modules can be found iteratively and their handles are available.
To unload one module, say, aModule, we use the following code:
string fullpath = string.concat(aController.FileSystem.RemoteDirectory, "/", aModule.Name, ".mod");
aModule.SaveToFile(fullpath);
The program throw an exception - "General File Handling Error"; I have no idea about what is going on. Can anybody help me on this? Many thanks
0
Comments
-
Deal All,
Sorry for bothering you.
I figured out what the problem is. The directory instead of full path should be passed to the function.
Thanks anyway.
0
Categories
- All Categories
- 5.4K RobotStudio
- 384 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 736 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings