Comments (6)
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#:
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.
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.
@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.
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:
- I added a line with the data path, because of Redirect to IEEELineCodes.dss inside the IEEE13Nodeckt file.
- 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.
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.
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)
- AppVeyor build automation HOT 1
- Thread-safety for parallel calculations and reading results HOT 2
- Alternative API/class library HOT 2
- OpenDSS version HOT 7
- .NET 7: LibraryImportAttribute HOT 2
- Make exceptions optional
- Expose the DSSEvents API
- get_CktElements method HOT 3
- Evaluate integration with other libraries
- Use custom marshalers for all data pointers
- Use CheckForError more frequently
- Multiplatform support
- Expose for COM interop HOT 1
- DSS Sharp 0.11 based on DSS C-API 0.11.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dss_sharp.