LabVIEW Electrical Power Toolkit API Reference

Table of Contents

COMTRADE Open VI

  • Updated2023-02-21
  • 3 minute(s) read

COMTRADE Open VI

Owning Palette: COMTRADE VIs

Requires: Electrical Power Toolkit

Opens a .cfg and the corresponding .dat file for reading or writing. You also can use this VI to create a new file or replace an existing file. Set include header file? or include information file? to TRUE if you also want to create or open a .hdr or .inf file. Use the COMTRADE Close VI to close references to the files. IEEE Std C37.111-1999 specifies that a filename must not exceed eight characters. However, this VI accepts filenames that have more than eight characters, but returns a warning message.

Example

include information file? specifies whether this VI also creates or opens a .inf file. The default is FALSE.
include header file? specifies whether this VI also creates or opens a .hdr file. The default is FALSE.
configuration file path specifies the absolute path to the .cfg file. If configuration file path is empty (default) or is Not A Path, this VI displays the COMTRADE File Path dialog box from which you can select a .cfg file.
open mode specifies the operation to perform while opening files.

0Create (default)—Creates new files.
1Create or replace—Creates new files or replaces files if they exist.
2Open (read only)—Opens existing files for read only.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
task out returns updated configuration information and references.
error out contains error information. This output provides standard error out functionality.

Example

Refer to the COMTRADE Logging and Reading.lvproj in the labview\examples\Electrical Power\COMTRADE Logging directory for an example of using the COMTRADE Open VI.

Log in to get a better experience