
Mastership.Request(iMastershipResource) is obsolete
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
0
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?
☑️2024 - RobotStudio® User Group0 -
Thanks, yes I can view it in VS Object Browser but am stuck with the code changes I need to make.
0 -
Hello,Does this works?using (Mastership m = Mastership.Request((iMastershipResourceController)rpdController.Rapid))
☑️2024 - RobotStudio® User Group0 -
Hi again, I tried this but it didn't work.
Thanks
David0 -
Hello,
please try the following:using (Mastership m = Mastership.Request(rpdController))
1 -
Hi Micky
Thank you very much, that worked.
I only just revisited this issue since it first arose last year.
Regards
David0 -
Hello,
Just moved the thread into Developer Tools section so it's easier to find if someone has similar problem—Nils OlofssonPC Software Support Engineer0
Categories
- All Categories
- 5.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 828 RAPID Programming
- 12 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings