Main Content

opc.hdaSupport

OPC HDA troubleshooting utility

Description

opc.hdaSupport('localhost') returns diagnostic information for all OPC HDA 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.hdaSupport('HostName') returns diagnostic information for the OPC HDA servers installed on the host with name HostName, and saves the text output to the file, opcsupport.txt in the current directory. Then the file opens in the editor for viewing.

example

opc.hdaSupport('HostName','FileName') saves the text output to the file FileName in the current folder. Then the file opens in the editor for viewing.

example

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

outFile = opc.hdaSupport(___) returns the full path to the generated file and does not open the file in the editor for viewing. This syntax can use any input arguments previously listed in earlier syntaxes.

Examples

collapse all

opc.hdaSupport('localhost')
opc.hdaSupport('area1')
opc.hdaSupport('area1','myfile.txt')

Input Arguments

collapse all

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

Data Types: char | string

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

Data Types: char | string

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

Output Arguments

collapse all

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

Version History

Introduced in R2013a

See Also

Functions