unload modules
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.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 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