Can you be more specific about what the error is and/or how it is failing?
There are two new pieces of functionality in 5.08 that make this easier: writing debug or trace messages to the robot console and remote device debugging.
Write Debug messages to console:
Use the Imports (VB) or Using (C#) to access the ABB.Robotics.Diagnostics namespace.
Add debug messages in your code such as Debug.WriteLine(“debug message1”) or Trace.Writeline(“Trace message 1”)
Build and deploy your application, restart FlexPendant.
In the console, turn on FlexPendant debug message printing by entering “fpcmd_enable_console_output 3” (no quotes)
Observe the console output for troubleshooting information.
Disable debug output by entering “fpcmd_disable_console_output” (no quotes)
Remote device debugging:
With the proper hardware setup, you can use the VS2005 remote debugger to attach to the Taf process, i.e the FlexPendant application itself. When you do this, you can set breakpoints and step through your code to see exactly where it is failing.
The procedure for performing this type of debugging is described in the product documentation that is supplied with the release version of RAB 5.08.
System.InvalidOperationException was caught
Message=“There was an error generating the XML document.”
Source=“System.Xml”
StackTrace:
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
at System.Xml.Serialization.XmlSerializer.Serialize(TextWriter textWriter, Object o)
at TpsViewBendwareOnBoard.BWProgramData.Save(String XMLPath, BWProgramData& mydata)
Try using the Temp directory on the FlexPendant (which corresponds to LocalDirectory) as the destination where the file will be created, then use FileSystem.PutFile to copy it to the flashdisk after the file is created.