opcsupport

OPC Toolbox troubleshooting utility

Syntax

  • opcsupport('localhost') example
  • opcsupport('HostName') example
  • opcsupport('HostName','FileName') example
  • opcsupport('HostName','FileName','da')
  • opcsupport('HostName','FileName','hda')
  • outFile = opcsupport(___)

Description

example

opcsupport('localhost') returns diagnostic information for all OPC servers installed on the local machine, and saves the output text to the file opcsupport.txt in the current folder. This file is then opened in the editor for viewing.

example

opcsupport('HostName') returns diagnostic information for the OPC servers installed on the host with name HostName, and saves the text output to the file, opcsupport.txt in the current directory. This file is then opened in the editor for viewing.

example

opcsupport('HostName','FileName'), returns diagnostic information for the OPC servers installed on the host with name HostName, and saves the text output to the file FileName in the current folder. This file is then opened in the editor for viewing.

opcsupport('HostName','FileName','da') or opcsupport('HostName','FileName','hda') restricts information gathered from the servers on HostName to only data access ('da') or to only historical data access ('hda').

outFile = opcsupport(___) returns the full path to the generated file and does not open the file in the editor for viewing.

Input Arguments

expand all

'HostName' — Machine hosting OPC server'localhost' | other character string

Machine hosting OPC servers, specified as a character string.

Data Types: char

'FileName' — File for output text'opcsupport.txt' (default)

File for output text, specified as a character string.

Data Types: char

'da' — Indicate data access onlyliteral string

Indicate data access only, specified as a literal string.

Data Types: char

'hda' — Indicate historical data access onlyliteral string

Indicate historical data access only, specified as a literal string.

Data Types: char

Output Arguments

expand all

outFile — Path to file of resultsstring

Path to file of results, returned as a string.

Was this topic helpful?