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.4K RobotStudio
- 384 UpFeed
- 15 Tutorials
- 12 RobotApps
- 290 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 241 ScreenMaker
- 2.7K Robot Controller
- 283 IRC5
- 44 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 746 RAPID Programming
- 15 Wizard Easy Programming
- 110 Collaborative Robots
- 3 Job listings