Datasource.CreateTraceAddressInfoWriter
(METH)
METHOD CreateTraceAddressInfoWriter : IDatasources.ITraceAddressInfoWriter
Creates an instance of ITraceAddressInfoWriter, that is able to write the address info for a given variable. .. note:: The returned ITraceAddressInfoWriter must be released by calling ReleaseTraceAddressInfoWriter
- InOut:
Scope
Name
Type
Comment
Return
CreateTraceAddressInfoWriter
IDatasources.ITraceAddressInfoWriter
- An ITraceAddressInfoWriter instance containing the address of the passed symbol.
If the underlying IDriver does not support this feature 0 is returned.
Input
psSymbol
POINTER TO STRING
The symbol for which the address has to be determined.
Output
udiResult
UDINT
- Returns an error code
ERR_OK: In case of success
ERR_NOTINITIALIZED: Method was called, before the datasource was initialized
ERR_PARAMETER: psSymbol is invalid
ERR_NOTIMPLEMENTED: Required interface is not implemented by the driver
ERR_NO_OBJECT: If the data item was not found