Update to PSCAD due to Changes Made to Microsoft Visual Studio

1. Overview

If using the Intel compiler/Microsoft Visual Studio (VS) software to compile PSCAD cases, please note that PSCAD v4.6.1+  must be properly configured, for either of the two following configurations:

  • To be able to use VS2013 and older, or
  • To be able to use VS2015 and newer

This requirement to select the applicable configuration became necessary because of changes made to Microsoft Visual Studio libraries at VS2015.

As a result of these Visual Studio libraries changes:

  • PSCAD v4.6.0 and Older - Not Affected by these Changes:

    -Supported with Visual Studio 2013 and older.

    -PSCAD v4.6.0 and older by default come configured for VS 2013 and older, and cannot be configured to use Visual Studio 2015.

    -Example - The Newest Intel/VS Combination for PSCAD v4.6.0:
    Since Visual Studio 2013 is supported with Intel 14.0-19.0, the newest combination that can be used with PSCAD v4.6.0 is Intel 19.0/VS 2013.

  • PSCAD v4.6.1 and v4.6.2 - Must be Configured Depending on your Visual Studio Version:

    -Supported with VS2013 and older, and with VS2015.

    -Not supported with VS2017+.

    -PSCAD v4.6.1 and v4.6.2 by default come installed configured for VS2013 and older, or can be configured to use VS2015 instead.

    Example - The Newest Intel/VS Combination for PSCAD v4.6.1 and v4.6.2:
    Since Visual Studio 2015 is supported with Intel 15.0.5.280-19.0, the newest combination that can be used with PSCAD v4.6.1 and v4.6.2 is Intel 19.0/VS 2015.
    PSCAD would need to be configured for this as per Step 2, below.

    Notes
    a. To toggle PSCAD back to the default state (VS2013-) refer to Step 3, below.
    b. To check the PSCAD currrent state, refer to Step 4, below.

  • PSCAD v4.6.3 and v5.0.0 - Must be Configured Depending on your Visual Studio Version:

    -Supported with VS2013 and older, and with VS2015-VS2019.

    -PSCAD v4.6.3 and v5.0.0 by default come installed configured for VS2013 and older, or can be configured to use VS2015+ instead (Step 2 below).

    Example - A Newer Intel/VS Combination for PSCAD v4.6.3 and v5.0.0:
    Since Visual Studio 2019 is supported with Intel 19.0.4.228-19.2, a newer combination that can be used with PSCAD v4.6.3 and v5.0.0 is Intel 19.2 (oneAPI) and VS2019.
    PSCAD would need to be configured for this as per Step 2, below.

    Notes
    a. To toggle PSCAD back to the default state (VS2013-) refer to Step 3, below.
    b. To check the PSCAD current state, refer to Step 4, below.

Additonal Notes:

a. If you will be running a pre-compiled model, please be aware there are limitations if that model contains any c-code. Refer to Step 3 of this article for further information.

b. Some customers need to be able to run either VS2013- or VS2015+ on one computer. Consequently, they would need to toggle PSCAD between using VS 2015+ and VS 2013- as needed. This can be done either manually or using the MHI Fortran Medic utility as per Steps 2 and 3 below, respectively. Or, a script that makes these changes can be written.

c. If using Intel 15 Update 4 and older exclusively, your machine must remain configured for VS2013 and older. PSCAD comes installed with this configuration by default. Or, if you have configured your machine for VS2015+, the VS2013- configuration can can be restored as per Step 3.

2. Configuring PSCAD to use Visual Studio 2015 and Newer

If using Visual Studio 2015 and newer, use the Fortran Medic tool to configure PSCAD to "State = 63" as follows:

Note
You will be prompted whether to run this utility with Windows Administrator privileges. Select "Yes".

  • When the Fortran Medic Utility displays, click on the "Actions" menu and select "Start".

  • When the results are displayed, scroll down to your PSCAD (x64 edition) installation, right-click on the "Configure EMTDC"option, and select the option to configure PSCAD for VS 2015+. See sample below:

            Fortran Medic - Configure for VS 2015+.png (151 KB)

  • For PSCAD v4.6.3 and earlier, scroll back up to your PSCAD (x86 edition) installation, and perform the same change with this edition.

Notes

a. If the Medic utility fails to perform these changes automatically, this may be performed manually as per Solution 2 of Section 7.36 of this document.

b. To check that this change has been made, re-run the Medic (from the Actions menu, select "Start"), scroll down to the PSCAD installation, and confirm that the State = 63 (see Step 4 below for further clarification).

c. If you have any issues, please refer to Step 5 Troubleshooting, below.

3. Configuring PSCAD to use Visual Studio 2013 and Older

If using Visual Studio 2013 and older, use the Fortran Medic tool to configure PSCAD to "State = 62" as follows:

  • Download the latest “FortranMedic” from our website:
    http://updater.pscad.com/utilities/FortranMedic.zip
  • Unzip the downloaded file, save it to a local drive, and run the "FortranMedic.exe" file.

    Note
    When prompted whether to run this utility with Windows Administrator privileges, select "Yes".

  • When the Fortran Medic Utility displays, click on the "Actions" menu and select "Start".

  • When the results are displayed, scroll down to your PSCAD (x64 edition) installation, right-click on the "Configure EMTDC" option, and select the option to configure PSCAD for VS 2013-. See sample below:
    Fortran Medic - Configure for VS 2013-.png (151 KB)

  • For PSCAD v4.6.3 and earlier, scroll back up to your PSCAD (x86 edition) installation, and perform the same change with this edition.

Notes

a. If the Medic utility fails to perform these changes automatically, re-install PSCAD, and the default installed configuration would be State = 62.

b. To check that this change has been made, re-run the Medic (from the Actions menu, select "Start"), scroll down to the PSCAD installation, and confirm that the State = 62 (see Step 4 below for further clarification).

c. If you have any issues, please refer to Step 5 Troubleshooting, below.

4. Determining Current Configuration

If you are unsure which Visual Studio libraries that PSCAD is currently configured for, this may be determined as follows:

  • Download the latest Fortran Medic tool from our website:

http://updater.pscad.com/utilities/FortranMedic.zip

  • Unzip the downloaded file, save it to a local drive, and run the FortranMedic.exe file.
  • Click on the Actions menu and select Start.
  • In the Medic results, scroll down to the PSCAD installations section. For example:

  • View the status for your PSCAD version (x86 or x64 as applicable):

State = 62: PSCAD is configured for using VS 2013 and earlier. For example:

State = 63: PSCAD is configured for using VS 2015 and newer. For example:

5. Troubleshooting your Setup

Please refer to the hints provided in this article.

Back