LEC Forum

Communications => COMTRADE => Topic started by: Dave Loucks on June 05, 2014, 10:29:08 AM

Title: COMTRADE parsing VBA (Excel) code
Post by: Dave Loucks on June 05, 2014, 10:29:08 AM
New Features (V0.16h alpha) (31-OCT-17 (latest version)

Download this latest version at: https://pps2.com/cei/cei_16h.xlsb (https://pps2.com/cei/cei_16h.xlsb)

Note: This Excel file contains macros and Windows will block execution of those macros by default.  View this Microsoft article (https://support.microsoft.com/en-us/topic/a-potentially-dangerous-macro-has-been-blocked-0952faa0-37e7-4316-b61d-5b5ed6024216) on how to unblock this feature so you can run the spreadsheet.

You will also be prompted to "update links" when first opening.  Click Don't Update
Next click on the Graphing tab to view an example COMTRADE file that was imported.  Click the Zoom+ or Zoom- to zoom the waveform.  Press < Shift or Shift > to pan through the waveform.




New Features (V0.16g alpha) (22-MAY-17 (latest version)

Download this latest version at: http://loucks.ws/v/ct/cei_16g.xlsb (http://loucks.ws/v/ct/cei_16g.xlsb)

Or as always you can check and download the latest from within the program:

(https://pps2.com/images/smf/comtrade/check_latest.png)



New Features (V0.16d alpha) (22-FEB-17)

Known bugs:

Here's a video tutorial on how to use this math functionality.
(https://pps2.com/images/smf/comtrade/math_CEI_video.jpg) (https://pps2.com/v/s/1/cei_math.php)

Download this latest version at: http://loucks.ws/v/ct/cei_16d.xlsb (http://loucks.ws/v/ct/cei_16d.xlsb)

Or as always you can check and download the latest from within the program:

(https://pps2.com/images/smf/comtrade/check_latest.png)


New Features (V0.15d alpha) (3-FEB-17)

Here's a video tutorial on how to use the rms functionality.
(https://pps2.com/images/smf/comtrade/cei_rms_video.jpg) (https://pps2.com/v/s/1/cei_rms.php)

Download this latest version at: http://loucks.ws/v/ct/cei_15d.xlsb (http://loucks.ws/v/ct/cei_15d.xlsb)


New Features (V0.15 alpha)

Download this latest version at: http://loucks.ws/v/ct/cei_15.xlsb (http://loucks.ws/v/ct/cei_15.xlsb)


New Features (V0.14n alpha)
(https://pps2.com/v/m2/cei_fft.jpg)
Download this latest version at: http://loucks.ws/v/ct/cei_14n.xlsb (http://loucks.ws/v/ct/cei_14n.xlsb)

Watch a video screencast video on how to use these FFT features:
https://pps2.com/v/s/1/ceifft.php (https://pps2.com/v/s/1/ceifft.php)

Did you have trouble getting the FFT function to run inside Excel?  You might have either not installed the Analysis Toolpak, or you might not have enabled the functionality within Excel.  Check out this video for an explanation:
https://pps2.com/v/s/1/atp.php (https://pps2.com/v/s/1/atp.php)


New Features (V0.14g alpha)

Download this latest version at: http://loucks.ws/v/ct/cei14g.xlsb (http://loucks.ws/v/ct/cei14g.xlsb)


New Features (V0.13n alpha)

The new PX meter firmware captures 18 seconds (2.5 seconds pre-trigger and 15.5 post-trigger).

Download this latest version at: http://loucks.ws/v/ct/cei13n.xlsb (http://loucks.ws/v/ct/cei13n.xlsb)

Here's the screencast explaining how to use the new features:
http://pps2.com/v/1/v013n.php (http://pps2.com/v/1/v013n.php)


Features (V0.13k alpha)

Download this latest version at: http://loucks.ws/v/ct/cei13k.xlsb (http://loucks.ws/v/ct/cei13k.xlsb)


Previous Version (V0.13a alpha)
(bug fixed that caused "Single" button download to fail)
(http://pps2.com/images/smf/poweranalysis/CEIV13.jpg)
The latest Power Xpert meters allow sequential file captures to retrieve longer high speed captures.  This tool allows you to select those files and have them appended one to another.  Excel 2010 (tested on) limits spreadsheets to no more than 1 million rows, so the program will crash if attempting to import more than that.  Practically speaking, Excel starts to bog down, so you may find it more useful to only import the portions of the waveform files that contain information you find useful.  That might mean importing them all, noting which file or files (based on time stamp) contains the information of interest and repeat the import with just those files.

Also, since this program was written without requiring add-ins (which require admin rights to install), I can only use VBA to parse the files.  Large files can require minutes to process.  Likely a future version will include an add-in (compiled parsing code) to speed through the import for those users who have admin rights on their computer.

Here's the screencast that explains how to use these latest features:
http://pps2.com/v/1/v13.php (http://pps2.com/v/1/v13.php)

Download this latest version at: http://loucks.ws/v/ct/cei13a.xlsb (http://loucks.ws/v/ct/cei13a.xlsb)


Previous Version (V0.12) Features
(http://pps2.com/images/smf/poweranalysis/v12_CEI_screen_shot.jpg)

Here's the screencast that explains how to use these latest features:
http://pps2.com/v/1/v12.php (http://pps2.com/v/1/v12.php)

Download this latest version at: http://loucks.ws/v/ct/cei12a.xlsb (http://loucks.ws/v/ct/cei12a.xlsb)
(Note: fixed bug in the 0.12a version that caused very slow operation in previous versions.)


Previous Version (V0.11) Features

Here's the screencast that explains how to use these latest features:
http://pps2.com/v/1/cei011.php (http://pps2.com/v/1/cei011.php)

Download previous version V0.11 at: http://loucks.ws/v/ct/cei11.xlsb
 (http://loucks.ws/v/ct/cei11.xlsb)

Previous Version (V0.1) Features

Watch the screencast that explains the features added for this version: http://pps2.com/v/1/cei01_00.php (http://pps2.com/v/1/cei01_00.php)

Download the previous version V0.1 at: http://loucks.ws/v/ct/cei10.xlsm

 (http://loucks.ws/v/ct/cei10.xlsm)
(http://pps2.com/images/smf/cei00_01.jpg)

If you are interested in the VBA code that performs these functions I demonstrate how to use VBA to:



V 0.09 version (http://loucks.ws/v/ct/cei9_04.xlsm) is now available:
loucks.ws/v/ct/cei9_04.xlsm (http://loucks.ws/v/ct/cei9_04.xlsm)... or just click the check version link inside the earlier version to download the new version for free.

Flash version of screencast tutorial on how to use (I'll re-record this version's screencast in friendlier media format eventually!): http://loucks.ws/v/ct/update.html (http://loucks.ws/v/ct/update.html)

Sample COMTRADE files to test out system:
https://app.box.com/s/yyi3ws6pk16ryhrhziw5uyny2d9y66af (https://app.box.com/s/yyi3ws6pk16ryhrhziw5uyny2d9y66af)

(http://loucks.ws/images/cei_09_version.png)

Changes:


Waveform capture files from power meters, circuit breakers, reclosers and other IEDs (Intelligent Electronic Devices, in the utility vernacular) can provide valuable diagnostic information.  Use this application to open a waveform file stored in the IEEE COMTRADE format and load the data found into an Excel spreadsheet.  From Excel it is then a simple matter to create graphs, charts and other reports of the COMTRADE data.

I created a screencast that shows how to use it: loucks.ws/v/ct (http://loucks.ws/v/ct)

You can download the Excel spreadsheet here: loucks.ws/v/ct/cei7b.xlsm (http://loucks.ws/v/ct/cei7b.xlsm)

The VBA code is opened by clicking on Developer, then Visual Basic:
(http://loucks.ws/images/2014-06-05_10-23-04.png)

Once open, navigate through the VBA IDE to review my code.

(http://loucks.ws/images/2014-06-05_10-27-21.png)