
Mastership.Request(iMastershipResource) is obsolete

davidmaynard100
Brisbane, Australia ✭
Hi
In the latest PC SDK, I have a warning that "Mastership.Request(iMastershipResource)" is obsolete and should be replaced with "Request(iMastershipResourceController)".
My existing code is
public static Controller rpdController
Thanks
David
In the latest PC SDK, I have a warning that "Mastership.Request(iMastershipResource)" is obsolete and should be replaced with "Request(iMastershipResourceController)".
My existing code is
public static Controller rpdController
using (Mastership m = Mastership.Request(rpdController.Rapid))
{
rpdTask.Start();
}
I'm unsure of how to replace this code with the new version and an internet search comes-up with nothing (so far
.
I'm unsure of how to replace this code with the new version and an internet search comes-up with nothing (so far

Thanks
David
Post edited by Nils Olofsson on
Comments
-
Hello,I don't have last PS SDK to test with it, but in its PC_SDK_Reference_Documentation.chmABB.Robotics.Controllers. Controlleris:
public sealed class Controller : SDKBase, IController, IMastershipResourceController, IMastershipResource
Can you check it in VisualStudio?
-
Thanks, yes I can view it in VS Object Browser but am stuck with the code changes I need to make.
-
Hello,Does this works?using (Mastership m = Mastership.Request((iMastershipResourceController)rpdController.Rapid))
-
Hi again, I tried this but it didn't work.
Thanks
David -
Hello,
please try the following:using (Mastership m = Mastership.Request(rpdController))
-
Hi Micky
Thank you very much, that worked.
I only just revisited this issue since it first arose last year.
Regards
David -
Hello,
Just moved the thread into Developer Tools section so it's easier to find if someone has similar problem—Nils OlofssonPC Software Support Engineer
Categories
- 10.1K All Categories
- 5.2K RobotStudio
- 332 UpFeed
- 12 Tutorials
- 1 RobotApps
- 274 PowerPacs
- 401 RobotStudio S4
- 1.7K Developer Tools
- 233 ScreenMaker
- 2.6K Robot Controller
- 179 IRC5
- 29 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 659 RAPID Programming
- 14 Wizard Easy Programming
- 90 Collaborative Robots
- 3 Job listings