GithubHelp home page GithubHelp logo

PdServ integration about pysimcoder HOT 6 OPEN

robertobucher avatar robertobucher commented on July 20, 2024
PdServ integration

from pysimcoder.

Comments (6)

robertobucher avatar robertobucher commented on July 20, 2024

from pysimcoder.

robertobucher avatar robertobucher commented on July 20, 2024

from pysimcoder.

robertobucher avatar robertobucher commented on July 20, 2024

Hi Andreas

I've put "syspath" and "ident" in blocks and subsblock and it seems to work. This is a very good improvement!

Before commit the changes, I'll do some tests to see if nothing else is affected by this modification.

Till now, I let my "old" code in scene.py for code generation and I've not inserted these 3 modified lines in the code:

    fn.write('')
    fn.write('codedata = genCode(fname, ' + self.Ts + ', blks)\n')
    fn.write("genMake(fname, '" + self.template + "', codedata, addObj = '" + self.addO

I've tried your "codedata", but I have some problems with the LTI (G(s) block that gives some errors by the code generation (I'll investigate why).

from pysimcoder.

igh-ab avatar igh-ab commented on July 20, 2024

Hello Roberto,
Sorry for the late response, back to work.

Generally it is possible that the codegenerator needs some more codeentrypoints.
Especially for subsampling and internal state update.

I am also thinking, howto extend the RCPblk class (S-Function like interface):

  • Init Parameter function by this class
  • Validate function
  • Multi dimsional parameter or structs (we are in python). Actually the parameter interface reflects only the C-API, but there is no need to.
  • GUI Logic function
  • Block GUI file loading
    ....

In general speaking, only one file per block is responsible for

  • GUI behavior
  • Parameter handling
  • Codegeneration

Best regards

Andreas

from pysimcoder.

Harshitahusts avatar Harshitahusts commented on July 20, 2024

I would like to contribute to this issue I have read the Readme.file for so. Can I?

from pysimcoder.

robertobucher avatar robertobucher commented on July 20, 2024

Yes, of course you can!

This will give a great improvement to the tool!

from pysimcoder.

Related Issues (18)

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.