![RobotStudio event](https://new.abb.com/images/librariesprovider89/default-album/rs_webinar_invitation_2025_2.jpg)
Remote Operator Dialog Box Can't Subscribe UIInstructionEvent
![thuanly](https://secure.gravatar.com/avatar/0e756cd8970d8058481d033c42b59650/?default=https%3A%2F%2Fus.v-cdn.net%2F5020483%2Fuploads%2Fdefaultavatar%2FK2266OAKOLNC.jpg&rating=g&size=200)
thuanly
✭
Hello everyone!
I’m trying to create a remote operator dialog using PCSDK 2022.3 but event OnUIInstructionEvent isn't called when pointer is coming (no error is displayed, pointer runs through to the next command line without going into this event)
![](src)
![](src)
I’m trying to create a remote operator dialog using PCSDK 2022.3 but event OnUIInstructionEvent isn't called when pointer is coming (no error is displayed, pointer runs through to the next command line without going into this event)
0
Comments
-
Here is my code to subscribe UIInstructionEvent:private void cb1_SelectionChanged(object sender, SelectionChangedEventArgs e){scanner = new NetworkScanner();scanner.Scan();//scan all avaiable controllersControllerInfoCollection controllers = scanner.Controllers;//save all avaiable controllersforeach (ControllerInfo controllerInfo in controllers){if(controllerInfo.SystemName == cb1.SelectedItem.ToString()){c = ControllerFactory.CreateFrom(controllerInfo);c.Logon(UserInfo.DefaultUser);lb_message.Content = "User was logon into " + c.SystemName + "!";c.Rapid.UIInstruction.UIInstructionEvent += OnUIInstructionEvent;}}
}private void OnUIInstructionEvent(object sender, UIInstructionEventArgs e){btn_ok.Content = "Test Subscribe";if (e.InstructionEventType == UIInstructionEventType.Send){if (e.InstructionType == UIInstructionType.UIMsgBox){lb_message.Content = e.EventMessage;}}}0
Categories
- All Categories
- 5.5K RobotStudio
- 398 UpFeed
- 19 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)
- 808 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings