Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

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.

Examples

collapse all

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

Input Arguments

collapse all

Machine hosting OPC servers, specified as a character vector.

Data Types: char

File for output text, specified as a character vector.

Data Types: char

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

Data Types: char

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.

Introduced before R2006a

Was this topic helpful?