How can I excute PC SDK faster less than 1ms
Use following code will cost about 40ms. How can I reduce to less than 1ms?
public bool SetPersAllRotTarget(RapidData data, string newValue,int index)
{
if (data != null)
{
try
{
//RobTarget type = (RobTarget)data.Value;
RobTarget type = new RobTarget();
type.FillFromString2(newValue);
data.WriteItem(type, index);
}
catch (ThreadAbortException tae)
{
}
catch (Exception ex)
{
if (abb.LogShow != null)
abb.LogShow(ex.Message);
MessageBox.Show(ex.Message, "错误", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly);
return false;
}
return true;
}
else
return false;
}
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings