Enhance SAM with features tailored to your specific needs! We collaborate with companies, universities, and organizations to privately fund new capabilities or analyses. Your investment drives innovation while benefiting the broader energy community. Email us to learn more.

SSC Library in MATLAB Wrapper

  • Paul Gilman
  • Topic Author
More
30 Sep 2013 10:10 #1845 by Paul Gilman
SSC Library in MATLAB Wrapper was created by Paul Gilman
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: Paul Gilman
Powered by Kunena Forum