TRACE
To generate a trace in SCADA BASIC and output as part of PcVue's event log.
WebVue support - Yes.
Syntax
TRACE(Mode, String);
There is no return type.
Argument |
Meaning |
String |
The message to be logged. Type STR. |
Execution
Mode |
Mnemonic |
Action |
3 |
LOG |
To send a message to the Event Viewer and Bin\Log Files\Trace.log file. |
6 |
FILE |
To send a message to the Bin\Log Files\MacroTrace.log file. If executed in a WebVue session context this instruction is processed by the computer that hosts the web back end and the trace is generated on that computer. |
This instruction is provided as a facility to generate a system event log comprising both PcVue's traces and project level activity traces. Generating too many traces makes it impossible to use the event log for post-mortem analysis. It is strongly recommended that application designers refrain themselves from using this instruction as a debugging facility for project scripts with the consequence of polluting the event log.