Giter Site home page Giter Site logo

Comments (6)

PMeira avatar PMeira commented on June 29, 2024

Hi, Ezequiel,
I had already ported the main code for those before (back in October), so just needed to expose the DSS commands from V8 to V7: CalcIncMatrix, CalcIncMatrix_O, Refine_BusLevels, CalcLaplacian -- dss-extensions/dss_capi@d67f9dc

The Export commands were already ported correctly. I ran a basic test now and got the same results as COM Version 8, so it should be fine -- be sure to check though.

You're using v0.10.1a1, right? Since this doesn't change the API, you should be able to grab the fresh dss_capi_v7.dll from AppVeyor and replace your local dss_capi.dll. For this version also copy libwinpthread-1.dll and libklusolve.dll since they contain a new function -- this function made DSS C-API 7-20% faster.

There is also a family of methods like Solution_Get_IncMatrix that isn't properly replicated in C#:

https://github.com/dss-extensions/dss_capi/blob/db2936c200a42564be387a1c923ebd69d465eabc/include/v7/dss_capi.h#L4647

Let me know if you have any use for those and I'll expose them sooner. And thanks for reporting these issues.

from dss_sharp.

Zecao avatar Zecao commented on June 29, 2024

Hi, Paulo,
I followed your instructions carefully, but I'm getting a exception in both methods from the dss_sharp.dll. Yes, Im using the v0.10.1a1.

from dss_sharp.

PMeira avatar PMeira commented on June 29, 2024

@Zecao Maybe I forgot something, try bin\Debug\simple_test.exe from this very crude test:
simple_test.zip

The DSS.Version should be this:
DSS C-API Library version 0.10.3 revision d67f9dc5dfae166d1d53f7c85b95eb54796907c6 based on OpenDSS SVN 2504 (v7/classic variation) MVMULT (64-bit build); License Status: Open

from dss_sharp.

Zecao avatar Zecao commented on June 29, 2024

It´s working, man! :)
I didn't understand why it doesn't work before (but, as I'm working in a different computer right now, it could be something related to that). Also, I did 2 modifications to run the test:

  1. I added a line with the data path, because of Redirect to IEEELineCodes.dss inside the IEEE13Nodeckt file.
  2. I had to comment the lines beginning with "*/" in the IEEE13Nodeckt file, because they were generating exceptions (it gave me the error number 302).
    Thank you!

from dss_sharp.

PMeira avatar PMeira commented on June 29, 2024

Nice! You probably had multiple copies of the DLL and it was picking the wrong one.

I had to comment the lines beginning with "*/" in the IEEE13Nodeckt file, because they were generating exceptions (it gave me the error number 302).

The redirect shouldn't be an issue either, but this issue with block comments is especially strange. I'll try to look into it this week.

from dss_sharp.

PMeira avatar PMeira commented on June 29, 2024

I forgot to close this issue before. I'll mention that the reworked version (with includes mapping DSS.Error to .NET exceptions) should land soon and should make debugging errors in DSS scripts much easier: #11

from dss_sharp.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.