+ Reply to Thread
Results 1 to 7 of 7

Thread: integration of PSCAD 4.2.1 to Matlab R2008a

  1. #1
    Junior Member
    Join Date
    Feb 2010
    Posts
    15
    Dear All,
    After the support of this forum now I am able to simulate cases with the following software configuration:
    1. PSCAD v4.2.1 student version
    2. Intel Visual Fortran Compiler v9.1.
    3. MS Visual Studio .NET 2005 (MS Visual Studio v8)
    4. Windows XP
    But Unfortunately, When trying to integrate PSCAD to Matlab R2008a, I get the following error:
    Linking tutti.exe
    emtdc.lib(mlab_Int.obj) : error LNK2019: unresolved external symbol _MXCALLOC@8 referenced in function _SETWSVARIABLES
    emtdc.lib(mlab_Int.obj) : error LNK2019: unresolved external symbol _MXCOPYREAL8TOPTR@12 referenced in function _SETWSVARIABLES
    emtdc.lib(mlab_Int.obj) : error LNK2019: unresolved external symbol _ENGPUTFULL@28 referenced in function _SETWSVARIABLES
    emtdc.lib(mlab_Int.obj) : error LNK2019: unresolved external symbol _MXFREE@4 referenced in function _SETWSVARIABLES
    emtdc.lib(mlab_Int.obj) : error LNK2019: unresolved external symbol _ENGEVALSTRING@12 referenced in function _SETMLABCMD
    emtdc.lib(mlab_Int.obj) : error LNK2019: unresolved external symbol _ENGOUTPUTBUFFER@12 referenced in function _SETMLABCMD
    emtdc.lib(mlab_Int.obj) : error LNK2019: unresolved external symbol _ENGOPEN@8 referenced in function _SETMLABCMD
    emtdc.lib(mlab_Int.obj) : error LNK2019: unresolved external symbol _ENGGETFULL@28 referenced in function _GETONEWSVAR
    emtdc.lib(mlab_Int.obj) : error LNK2019: unresolved external symbol _MXCOPYPTRTOREAL8@12 referenced in function _GETONEWSVAR
    tutti.exe : fatal error LNK1120: 9 unresolved externals
    NMAKE : fatal error U1077: '"c:\program files\microsoft visual studio 8\vc\bin\link.exe"' : return code '0x460'
    Stop.


    My suggestions for the problem are:
    1. The versions of software do not match with each other
    2. The softwares have some error that can not be identified so easily.
    Does anyone who faced with similar problem ? Any help, any suggestion would be so grateful for my work.

    Best Regards,
    Pp
    Note: Please see the attachments containing pscad file, m-file and the error code in txt.





  2. #2
    Junior Member
    Join Date
    Feb 2010
    Posts
    7
    Hi,

    Yes, the version of Matlab is too high, and it cannot match withthat of pacad. If you hope to interface the pscadwith matlab, you must make sure your matlab version to be 6.5 or lower.

  3. #3
    Junior Member
    Join Date
    Feb 2010
    Posts
    5
    Matlab 7.0 is ok

  4. #4
    With PSCAD 4.2.1, you can use a version of Matlab upto R2008b. I am guessing you have not done one of the the following:

    1) Select "link this simulation with the currently installed Matlab libraries" in project settings.

    2) Enter the correct path in "library path" under matlab in Workspace settings. Select the installed version as version 5, which gives you the option of entering the matlab library path explicitly. Should be like ......Matlab\R2008a\extern\lib\win32\microsoft.

  5. #5
    Senior Member
    Join Date
    Feb 2010
    Posts
    1,988
    Hi,
    I have the same problem, but I am using Matlab Version R2009b with PSCAD4.2.1. Although I have done these works :
    1) Select "link this simulation with the currently installed Matlab libraries" in project settings.

    2) Enter the correct path in "library path" under matlab in Workspace settings. Select the installed version as version 5, which gives you the option of entering the matlab library path explicitly. Should be like ......Matlab\R2009b\extern\lib\win32\microsoft.

    again I get the message like:

    emtdc.lib(Mlab_Int.obj) : error LNK2001: unresolved external symbol _ENGGETFULL@28

    emtdc.lib(Mlab_Int.obj) : error LNK2001: unresolved external symbol _ENGPUTFULL@28

    TEST3.exe : fatal error LNK1120: 2 unresolved externals
    NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
    ...

    Do you think thats because of high version of Matlab I use?
    Thanks in advance because of your help.

    Best,
    SM

  6. #6
    Junior Member
    Join Date
    Oct 2011
    Posts
    8
    I have the same problem, waiting for help.....

  7. #7
    Junior Member
    Join Date
    Jan 2013
    Posts
    2
    Quote Originally Posted by Rohitha Jayasinghe View Post
    With PSCAD 4.2.1, you can use a version of Matlab upto R2008b. I am guessing you have not done one of the the following:

    1) Select "link this simulation with the currently installed Matlab libraries" in project settings.

    2) Enter the correct path in "library path" under matlab in Workspace settings. Select the installed version as version 5, which gives you the option of entering the matlab library path explicitly. Should be like ......Matlab\R2008a\extern\lib\win32\microsoft.
    Dear Rohitha,

    Are you sure it supports Matlab up to R2008b? Have you ever tried it?

    Thanks a bunch ^^

+ Reply to Thread

Similar Threads

  1. PSCAD v4.2-MATLAB v7.1
    By Anonymous in forum General Discussion
    Replies: 2
    Last Post: 06-12-2012, 12:44 AM
  2. Integration of PSCAD models in PSS/E and/or DigSILENT
    By acarcarm in forum E-TRAN General
    Replies: 5
    Last Post: 01-08-2012, 09:07 PM
  3. PSCAD 4.2.1 and Matlab 7.1
    By benabid in forum PSCAD Example Downloads
    Replies: 1
    Last Post: 05-11-2009, 07:17 AM
  4. Integration between PSCAD and MATLAB
    By crystal in forum EMTDC General
    Replies: 2
    Last Post: 04-06-2009, 08:33 PM
  5. About PSCAD and Matlab
    By Anonymous in forum General Discussion
    Replies: 7
    Last Post: 08-08-2008, 10:40 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts