Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.
API: TargetReachEvent
Matthias
✭
in RobotStudio
Hi again!
I found a TargetReachEvent EventHandler in the Mechanism class.
I did
[code]
.
.
.
int targetsReached = 0;
myactiveTask.Mechanism.TargetReachEvent += new EventHandler(myTargetReachEventHandler);
.
.
.
[/code]
with
[code]
static void myTargetReachEventHandler(object sender, EventArgs e)
{
targetsReached++;
}
[/code]
When I do Simulation -> Play the robot reaches all the targets but the eventhandler is not called.
Can anyone tell me whats wrong?
Best regards, Matthias
I found a TargetReachEvent EventHandler in the Mechanism class.
I did
[code]
.
.
.
int targetsReached = 0;
myactiveTask.Mechanism.TargetReachEvent += new EventHandler(myTargetReachEventHandler);
.
.
.
[/code]
with
[code]
static void myTargetReachEventHandler(object sender, EventArgs e)
{
targetsReached++;
}
[/code]
When I do Simulation -> Play the robot reaches all the targets but the eventhandler is not called.
Can anyone tell me whats wrong?
Best regards, Matthias
0
Comments
-
Hi Matthias,
Unfortunately the TargetReachEvent isn't implemented, so it will never be called..
regards,
Johannes
Johannes Weiman
Software Engineer
ABB Robotics0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 16 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 365 IRC5
- 86 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 856 RAPID Programming
- 39 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings
