![](https://us.v-cdn.net/5020483/uploads/editor/1o/jdtrokajc1fc.png)
![RobotStudio event](https://new.abb.com/images/librariesprovider89/default-album/rs_webinar_invitation_2025_2.jpg)
Unable to get My C# app to start a rapid in Robot Studio
![TTalma](https://secure.gravatar.com/avatar/c03ad198653794e0b86e8b0d84f86ebf/?default=https%3A%2F%2Fus.v-cdn.net%2F5020483%2Fuploads%2Fdefaultavatar%2FK2266OAKOLNC.jpg&rating=g&size=200)
TTalma
✭
I am new to Robot Studio and am attempting to learn how to interface and command a robot from a C# application
I have written a simple app to find available controllers and connect to RobotSudio.
My app finds the RobotStudio controller I have running on my PC. I am attempting to connect to it using the following code:
I have written a simple app to find available controllers and connect to RobotSudio.
My app finds the RobotStudio controller I have running on my PC. I am attempting to connect to it using the following code:
m_Controller = Controller.Connect(controllerModel.ControllerInfo, ConnectionType.Standalone);
m_Controller.Logon(UserInfo.DefaultUser);
At this point I do not think my connection is correct. When I run this against an older application I downloaded and compare old applications Controller to my m_Controller variables they are different. My data is virtually empty and the old application is populated. I am expecting to see some data such as the IPAddress, but it is empty.
When I try to run the rapid using the code below:
I get a "ABB.Robotics.GenericControllerException", I suspect this is because I am not actually connected.
Could anyone point out what I am doing wrong or tell me how to troubleshoot this so I can discover what I need to do differently?
At this point I do not think my connection is correct. When I run this against an older application I downloaded and compare old applications Controller to my m_Controller variables they are different. My data is virtually empty and the old application is populated. I am expecting to see some data such as the IPAddress, but it is empty.
When I try to run the rapid using the code below:
RapidData rapidData = m_Controller.Rapid.GetRapidData("Module1", "Path_10");
I get a "ABB.Robotics.GenericControllerException", I suspect this is because I am not actually connected.
Could anyone point out what I am doing wrong or tell me how to troubleshoot this so I can discover what I need to do differently?
0
Answers
-
Hello there!
Check out the pinned post in this section of the forums: https://forums.robotstudio.com/discussion/12056/pc-sdk-examples
If I remembered correctly I cover the basics of connecting to a controller there, and the code is available too.—Maxim RiabichevPC Software Support Engineer0
Categories
- All Categories
- 5.5K RobotStudio
- 398 UpFeed
- 18 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 321 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 807 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings