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.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)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings