Skip to content

Conversation

@sjanzou
Copy link
Collaborator

@sjanzou sjanzou commented Oct 22, 2025

Updates SDKTool var function to work with hybrids.

Specifically, add support to scripting.cpp for SSC_DATARR and SSC_DATMAT types.

To test use hybrids_sdktool branch o ssc and the develop branches of other repos and clean and build SAM and SDKTool

  1. In SAM, create and PVWatts Wind Battery Single Owner case
  2. Use the case menu and Code generation... and select "LK for SDKTool"
  3. Run the SDKTool from VS2022 or from explorer (on Windows)
  4. Select the recently build ssc.dll from SDKTool Module Browser
  5. Run the attached lk scripts (also has the generated json file if you want to skip steps 1 and 2)
    lk_SDKTool.zip

Expected results from the PVWatts_Wind_Battery_inputs_outputs.lk using the PVWatts_Wind_Battery.json generated file
image

Expected results from the test_datmat.lk SDKTool file
image

sscvar_to_lkvar and lkvar_to_sscvar updated to handle SSC_DATARR type.
Still need to update to handle SSC_DATMAT type.
Ideally, would like to align with same functions in variables.cpp in SAM
@coveralls
Copy link

Pull Request Test Coverage Report for Build 18712078259

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.004%) to 56.653%

Files with Coverage Reduction New Missed Lines %
ssc/shared/lib_geothermal.cpp 5 65.99%
Totals Coverage Status
Change from base Build 18355581094: -0.004%
Covered Lines: 66678
Relevant Lines: 117695

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants