This project has moved and is read-only. For the latest updates, please go here.

Getting Started with openPDC

This guide is intended to aid in building the openPDC software. If you're already familiar with the guide, feel free to use this navigation tool to jump around. If you need to see how to configure the openPDC, please refer to the Getting Started page, under the User's Documentation.

  1. Build openPDC from source code

    OpenPDC is an orchestration of multiple sub projects. The following describes the requirements for configuring a typical development system.

    Get the development tools

    You will need to have Microsoft Visual Studio 2010 in order to build and run the openPDC. You can download the trial or purchase the software from Microsoft's website at Microsoft MSDN.

    The openPDC system uses the Microsoft .NET 4.0 Framework. The .NET 4.0 redistributables may be downloaded from: .NET 4.0 Framework Stand Alone and Web Installation Instructions.
     
    Optionally, you can install Microsoft SQL Server Express during the Visual Studio installation if you plan on using a SQL Server database with openPDC.
     
    Additionally, if you don't have the Team version of Microsoft Visual Studio 2010, you will need to install FxCop. You can download that for free from Microsoft's website at FxCop 10.0.

    Get the source code

    To download the source code:

    1. Browse to each project site home page listed below
    2. Click the Source Code tab at the top of the page
    3. On the right side of the page, under the heading "Latest Version", click the "Download" link.
    4. Click "I Agree" to accept the license agreement.
    5. Select "Save" and select a destination for the compressed source code files.
    6. Navigate to the location where you downloaded the compressed source code files, and extract the source code from the zip archive.

    Source code project site home pages

    Build the software

    The following subsections describes the requirements for building the openPDC software from the source code using Microsoft Visual Studio.
     
    Note 1:  If you're having trouble, you may find that you need to build the solutions in the following order:

    1. TVA Code Library
    2. Time Series Framework
    3. openPDC TVA.Historian
    4. openPDC Synchrophasor

    See the FAQ for more details.
     
    Note 2:  When loading the solutions or projects you may be prompted to use source code control.

    Build the TVA Code Library

    After extracting the TVA Code Library source code, the Visual Studio solution is located in the SOURCEDIR\Main\Source folder.  SOURCEDIR is the directory you extracted the source code files to.

    1. Open Microsoft Visual Studio
    2. In the toolbar, go to "File > Open > Project/Solution..."
    3. Navigate to "SOURCEDIR\Main\Source", select "TVACodeLibrary.sln", and click "Open"
    4. In the toolbar, go to "Build > Build Solution"

    Build the Time Series Framework

    After extracting the Time Series Framework source code, the Visual Studio solution is located in the SOURCEDIR\Main\Source folder.  SOURCEDIR is the directory you extracted the source code files to.
     
    Dependencies

    Typical Build Procedure

    1. Open Microsoft Visual Studio
    2. In the toolbar, go to "File > Open > Project/Solution..."
    3. Navigate to "SOURCEDIR\Main\Source", select "TimeSeriesFramework.sln", and click "Open"
    4. If you made changes to the TVA Code Library, then be sure to replace the Project References for the dependency.
    5. In the toolbar, go to "Build > Build Solution"

    Build the openPDC Historian

    After extracting the openPDC source code, the Visual Studio solution is located in the SOURCEDIR\Historian\Current Version\Source folder.  SOURCEDIR is the directory you extracted the source code files to.
     
    Dependencies

    Typical Build Procedure

    1. Open Microsoft Visual Studio
    2. In the toolbar, go to "File > Open > Project/Solution..."
    3. Navigate to "SOURCEDIR\Historian\Current Version\Source", select "Historian.sln", and click "Open"
    4. If you made changes to the TVA Code Library or Time Series Framework, then be sure to replace the Project References for those dependencies.
    5. In the toolbar, go to "Build > Build Solution"

    Build the openPDC Synchrophasor

    After extracting the openPDC source code, the Visual Studio solution is located in the SOURCEDIR\Current Version\Source folder.  SOURCEDIR is the directory you extracted the source code files to.
     
    Dependencies

    Typical Build Procedure

    1. Open Microsoft Visual Studio
    2. In the toolbar, go to "File > Open > Project/Solution..."
    3. Navigate to "SOURCEDIR\Synchrophasor\Current Version\Source", select "Synchrophasor.sln", and click "Open"
    4. If you made changes to the TVA Code Library, Time Series Framework, or TVA.Historian, then be sure to replace the Project References for those dependencies.
    5. In the toolbar, go to "Build > Build Solution"

Last edited Jun 25, 2012 at 9:25 PM by alexfoglia, version 3

Comments

No comments yet.