Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Octave 9 issues #34

Closed
delta-atk opened this issue Apr 30, 2024 · 2 comments
Closed

Octave 9 issues #34

delta-atk opened this issue Apr 30, 2024 · 2 comments

Comments

@delta-atk
Copy link

delta-atk commented Apr 30, 2024

I tried the export from qucs-s and got some issues with Octave 9. I had to change the following things in the octave code to get it to run.

  • Octave 9 does not use .+ or .- operators, i had to change them to + and - so e.g. the line ReZ .+ linspace(-ImZ, ImZ, 256); does not work and has to be ReZ + linspace(-ImZ, ImZ, 256); now
  • Also i had to comment out the lines pkg load openems; and pkg load csxcad; at the beginning but there is already a comment in code to uncomment it to use Debian packages so i guess this is maybe not related to Octave 9
  • Plots are unresponsive, but the generated images are ok. Also when using the Octave GUI running the script immediately crashes it, just CLI does work. These error could also be Windows issues i guess
@thomaslepoix
Copy link
Owner

thomaslepoix commented May 2, 2024

Hi, Thanks for reporting.

  • Indeed, fixed.

  • This is the normal behavior because the official installation process involving addpath('/opt/share/openEMS/matlab'); in octaverc is a bit hacky, while some distros provide a properly packaged octave interface, included with pkg load. By default those lines are commented out so I assume you either used the --oems-pkg argument, either checked the Use Octave packages box in the GUI.

  • I just observed an unresponsiveness on NixOS too, I fixed it by using the octaveFull package, which just seems to embed the Qt GUI compared to the octave one. Now it's possible to zoom, etc. Don't know how this would translate to the Windows releases, especially since you obviously has the GUI installed. Here are some before/after screenshots, is this what you encountered?

  • I could catch this message error trying to launch the script from the Octave GUI ERROR : Unknown argument : --gui so I guess Octave forwards its own arguments to the script. Anyway, I don't recommend launching the script from the GUI since many control features are accessed trough the CLI.

@delta-atk
Copy link
Author

I see, i checked the Use octave packages box, i think it confused me because i thought it is necessary to use octave in general.

Yes this is very similar:

I realized now that octave-cli cannot use qt but only octave.exe. I built the current version using arch wsl and used it to generate a new .m. Now it runs out of the box when using octave on Windows, and the plots are fine from octave.exe. For me, there are no more errors now, thank you.

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

No branches or pull requests

2 participants