Main Content

opcsupport

OPC troubleshooting utility

Description

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.

example

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.

Examples

collapse all

opcsupport('localhost')
opcsupport('area1')
opcsupport('area1','myfile.txt')

Input Arguments

collapse all

Machine hosting OPC servers, specified as a character vector or string.

Data Types: char | string

File name for output text, specified as a character vector or string.

Data Types: char | string

Indicate data access only, specified as a literal character vector or string.

Data Types: char | string

Indicate historical data access only, specified as a literal character vector.

Data Types: char

Output Arguments

collapse all

Path to file of results, returned as a character vector.

Version History

Introduced before R2006a