Click or drag to resize

DebugWriteIf Method

Checks for a condition and sends a debug message out on the network if the condition is true. The message can be displayed in the controller console by enabling the functionality on the controller. Use fpcmd_enable_console_output to enable FlexPendant logging.

Namespace:  ABB.Robotics.Diagnostics
Assembly:  ABB.Robotics (in ABB.Robotics.dll) Version: 6.5.129.0
Syntax
C#
public static void WriteIf(
	bool condition,
	string message
)

Parameters

condition
Type: SystemBoolean
true to cause a message to be written; otherwise, false.
message
Type: SystemString
A message to write.
Examples
This example sends a debug message containing the state of an object if the state is not RUNNING.
Debug.WriteIf(myobj.State!=RUNNING, string.Format("Object state: {0}\n", myobj.State.ToString()));
See Also