COMTRADE VIs
- Updated2025-12-23
- 2 minute(s) read
Owning Palette: File I/O VIs
Requires: Electrical Power Toolkit. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.
Use the COMTRADE VIs to log data using the Common Format for Transient Data Exchange (COMTRADE) format as defined in IEEE Std C37.111-1999.
Note The read VIs support Windows only when you read data from COMTRADE files.
| Palette Object | Description |
|---|---|
| COMTRADE Close | Closes the file references you open with the COMTRADE Open VI. |
| COMTRADE Configure | Specifies the record and channel information that you want to write into .cfg and .dat files. You use the COMTRADE Write Data VI to write the record and channel information into .cfg and .dat files. |
| COMTRADE Open | 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. |
| COMTRADE Read Configure | Reads record and channel information from the specified .cfg and .dat files. You must set open mode to Open (read only) in the COMTRADE Open VI to open the .inf file. Otherwise this VI returns an error. |
| COMTRADE Read Data | Reads analog data and digital data from the specified .dat file. You must set open mode to Open (read only) in the COMTRADE Open VI to open the .inf file. Otherwise this VI returns an error. |
| COMTRADE Write Data | Writes configuration information and data to the specified .cfg and .dat files. You must set open mode to Create or Create or replace in the COMTRADE Open VI to open files. Otherwise this VI returns an error. |
| Subpalette | Description |
|---|---|
| Advanced VIs | Use the Advanced VIs to perform advanced file I/O operations. |