-
Notifications
You must be signed in to change notification settings - Fork 15
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
Failing to detect port #15
Comments
Hi! Currently the ports are defined in octave script file (simulation_script.m) with function AddLumpedPort. This means you need to manually set them based on your design. Regarding your segmentation fault I will check if its working for me, but one thing you can do is test if OpenEMS examples are working. Also you can investigate core dump and check backtrace where the fault is occuring. |
Hi. Thank you for your reply. I basically reinstalled everything since I was a little leery about my installation process. Now, I can run your examples properly. But, I am not able to run it for my new files (both, nightly and Kicad 5.1.6). For nightly, metals, PCB,drill, nothing was detected. But the code took up the ports as I defined it in the octave script file. For Kicad 5.1.6, it gives me the following error: terminate called after throwing an instance of 'std::length_error' Also, how much part of pcbmodelgen.json, simulation_script.m has to be manually edited? I am a little confused what I am missing. Thank you so much in advance. |
You probably need to edit makefile with correct file name of your kicad PCB.
Currently there is very little automation. This tool will convert PCB to octave script, compatible with the way you would normally interact with OpenEMS and also you can get mesh lines. Other then that you will have to do things manually, like setting correct dimensions and port locations and writing script to process measurements and so on. I have some ideas about further automation, but currently no free time. Edit: Also check examples and maybe you can get away with extending them. |
I have already done that really.
Thanks. I will look into it.
Sure, I understand. No worries. Will wait for it! :)
They are working. But I guess, everything in the simulation_script.m of examples are ready. In my case, the simulation_script.m doesn't get generated by itself after "make" command. |
Hi. I copied the simulation_script.m file from example and edited it.
Now, when I run "make run", it gives me the following error after the FDTD engine starts running: Engine_Interface_FDTD::CalcVoltageIntegral: Error, only a 1D/line integration is allowed I think I am almost there. |
Update: So, I thought of posting of how I have for now solved my problem.
It works !! Thank you Janis for your support!! |
Hi,
I am new to Pcbmodelgen and trying to figure out how to run kicad layout rf simulation in pcbmodelgen.
I followed the following instructions properly:
sudo apt-get install libtinyxml2-dev libtclap-dev
mkdir build
cd build
cmake ../
make
sudo make install
and then, put
addpath('/usr/share/octave/packages/openems-0.0.35/')
addpath('/usr/local/share/CSXCAD/matlab/')
in the octaverc file.
After I try to run pcbmodelgen -p pcb.kicad_pcb -c pcbmodelgen.json for the branchline_coupler_example, I can see the 3d view of it and after i close the image, following error occurs:
Segmentation fault (core dumped)
error: load: unable to find file ./tmp/port_ut1
error: called from
ReadUI at line 64 column 9
simulation_script at line 150 column 3
Could you please guide me as to why am I getting this error. Also, I don't see any ports defined in the example. How would pcbmodelgen find out where the ports are? The error also asks about a port file in the temp folder.
Can you please clear my doubts here? Thanks.
The text was updated successfully, but these errors were encountered: