SSC Library in MATLAB Wrapper

  • pgilman
  • Topic Author
More
30 Sep 2013 10:10 #1845 by pgilman
SSC Library in MATLAB Wrapper was created by pgilman
Here's a note I received by email that I thought would be helpful to share on the support forum:



I had a similar issue to many of the users on the fourm of not being able to recognize the dll. As the name of the dll has been changed from ssc64 to just ssc, the 'ssccall.m' must be updated with this change:


function [result] = ssccall(action, arg0, arg1, arg2 )
% SAM Simulation Core (SSC) MATLAB API
% Copyright (c) 2012 National Renewable Energy Laboratory
% author: Aron P. Dobos and Steven H. Janzou

  % automatically detect architecture to load proper dll.
  [pathstr, fn, fext] = fileparts(mfilename('fullpath'));
  if ( strcmp(computer(), 'PCWIN') ) % Windows 32-bit
    ssclibpath = '../../../win32/';
    ssclib = 'ssc';
  elseif ( strcmp(computer(), 'PCWIN64') ) % Windows 64-bit
    ssclibpath = '../../../win64/';
    ssclib = 'ssc';


Thanks



Best regards,
Paul.

Please Log in or Create an account to join the conversation.

Moderators: pgilman
Powered by Kunena Forum