GithubHelp home page GithubHelp logo

Issues using Tests about pysimcoder HOT 2 CLOSED

eve-wils avatar eve-wils commented on July 20, 2024
Issues using Tests

from pysimcoder.

Comments (2)

michallenc avatar michallenc commented on July 20, 2024

Hi @eve-wils. I don't think you are doing something wrong, the problem seems to be in including a python parameter script. Those steps should provide a workaround for diskRT1.dgm example.

enter Tests/ControlDesign/Disks/disk1.py
rewrite line 38: x1 = np.loadtxt('MOT1'); to the full path, for me it was x1 = np.loadtxt('/home/michal/Michal/GIT/pysimCoder/Tests/ControlDesign/Disks/MOT1');
enter Settings in pysimCoder GUI (the screwdrivers right next to the compilation button)
replace disk1.py with the full path to the file, so for me it was /home/michal/Michal/GIT/pysimCoder/Tests/ControlDesign/Disks/disk1.py
then you can compile the example. I think the process will be similar for other examples.

You also need to compile the C part of the pysimCoder based on the target hardware you are going to use. This needs to be done prior to the code generation from pysimCoder GUI. So for example enter CodeGen/LinuxRT/devices and execute make command. Similar process is for other supported targets.

I am currently not sure why the short version of the path is not working @robertobucher.

from pysimcoder.

robertobucher avatar robertobucher commented on July 20, 2024

The problem is probably related to the path of the files for code generation. The simplest method to corret it is to open the parameters dialog and "BROWSE" the file again. This will correct the path with the right one. I've checked some files and I had my "personal" path into the configuration.
Another possible problem is related to the environment variables: lease check that you have the right lines in your .bash file:
export PYSUPSICTRL=/home/bucher/CACSD/pysimCoder
export PYEDITOR=emacs
export PYTHONPATH=/home/bucher/Documents/PYTHON:/home/bucher/CACSD/pysimCoder/resources/blocks/rcpBlk

where /home/bucher should be fit your installation.

I've reinstalled some files to correct another problem related to the new "dlqr" command that now is available in the python-control toolbox.

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.