Documentation Center

  • Trials
  • Product Updates

opc.daSupport

OPC Toolbox data access troubleshooting utility

Syntax

  • opc.daSupport('localhost') example
  • opc.daSupport('HostName') example
  • opc.daSupport('HostName','FileName') example
  • opc.daSupport('HostName',Fid)
  • outFile = opc.daSupport(___)

Description

example

opc.daSupport('localhost') returns diagnostic information for all OPC data access servers installed on the local machine, and saves the output text to the file opcsupport.txt in the current folder. Then the file opens in the editor for viewing.

example

opc.daSupport('HostName') returns diagnostic information for the OPC servers installed on the host with name HostName, and saves the output text to the file opcsupport.txt in the current folder. Then the file opens in the editor for viewing.

example

opc.daSupport('HostName','FileName') returns diagnostic information for the host with the name HostName, and saves the output text to the file FileName in the current folder. Then the file opens in the editor for viewing.

opc.daSupport('HostName',Fid) appends its output information to the file already opened with fopen. The Fid argument must be a valid file identifier.

outFile = opc.daSupport(___) 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 string.

Data Types: char

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

File for output text, specified as a string.

Data Types: char

Fid — File identifier for open output filefile identifier for the open output file, set by the MATLAB fopen function

Example: Fid = fopen('MyOPCSupport.txt')

Output Arguments

expand all

outFile — Path to file of resultsstring

Path to file of results, returned as a string.

See Also

| |

Was this topic helpful?