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.6K RobotStudio
- 398 UpFeed
- 20 Tutorials
- 14 RobotApps
- 300 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 828 RAPID Programming
- 12 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings