TraceMgrPacketStore (FUN)

FUNCTION TraceMgrPacketStore : RTS_IEC_RESULT

Stores a trace packet to a trace file. Both the trace configuration and the current trace values are stored.

InOut:

Scope

Name

Type

Comment

Return

TraceMgrPacketStore

RTS_IEC_RESULT

Returns the runtime system error code (see CmpErrors.library):
  • ERR_PARAMETER if hPacket is not a valid handle, or if pszFileName is not a valid file path

  • ERR_NOMEMORY if the memory is not sufficient for opening the file

  • ERR_NOT_SUPPORTED if writing to files is not supported by the runtime system

  • ERR_NO_OBJECT if opening the file failed

  • ERR_FAILED if creating or writing to the file failed

Input

hPacket

RTS_IEC_HANDLE

The trace packet handle

Inout Const

pszFileName

STRING

The file path