Specify MATLAB Version When Multiple MATLAB Versions Are Installed

If multiple versions of MATLAB are installed, the preferred version to be co-simulated with PSCAD must be specified. This may be done as follows:

  • Ensure you have Windows Admininstrator privileges on your machine.

  • Open a Windows Command prompt with Windows Administrator privileges:

In the Windows Start menu, search for and right-click on "Command Prompt", and select "Run As Administrator".

  • At the command prompt, change the directory to the \bin folder of the MATLAB version which you want to use, then select the <Enter> key:

For example, to use MATLAB R2017b, and depending on where this is installed, the entry at the command prompt would be similar the following:

...>cd C:\Program Files (x86)\Matlab\R2017b\bin

  • At the new prompt, type in matlab -regserver, then select the <Enter> key:

For example, in keeping with the above example, this would look similar to the following:

C:\Program Files (x86)\Matlab\R2017b\bin>matlab -regserver

  • Log out then log back in to apply the changes.

  • Refer to Steps 2 and 3 of the following article to test your setup:

https://www.pscad.com/knowledge-base/article/516

Back