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.
how to SetTransitionTimes
chen
✭
in RobotStudio
Hi,
I'm trying to use SetTransitionTimes(Dictionary<string[], double> value) to set transition times for a mechanism's 2 poses. But I don't know how to use this function. E.g. I use it as:
tool.SetTransitionTimes(Dictionary<string["StripperIn","StripperOut"],0.5> value);
Obviously it doesn't work. Can someone show me the way to give it parameters?
Sam
0
Comments
-
Try something like this
Dictionary<string[], double> transitionTimes = new Dictionary<string[], double>();
string[] poses = new string[2];
//The from pose
poses[0] = "Home";
//The to pose
poses[1] = "End";
//New Time(ms)
double theNewValue = 1000;
transitionTimes.Add(poses,theNewValue);
myMech.SetTransitionTimes(transitionTimes);Per Svensson
Robotics and Vision Specialist
Consat Engineering0
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
- 366 IRC5
- 86 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 856 RAPID Programming
- 40 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings