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.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings