KJ7LNW / xnec2c

Xnec2c is a high-performance multi-threaded electromagnetic simulation package to model antenna near- and far-field radiation patterns for Linux and UNIX operating systems.
https://www.xnec2c.org/
GNU General Public License v3.0
78 stars 17 forks source link

Optimization requires the frequency plots window to be open #24

Closed KJ7LNW closed 1 year ago

KJ7LNW commented 1 year ago

From Finn, VK3FTA:

[ while using xnec2c-optimize ] I found that xnec2c did not automatically re-run the frequency loop when examples/yagi.nec was updated. I had to manually click the loop "play" button to regenerate yagi.csv -- even though xnec2c is configured to "Reload and write changes on .NEC file changes". Whereas, xnec2c-optimize.pl does automatically detect .csv file changes. I think I may have found the reason why. xnec2c's frequency loop only gets re-run automatically when xnec2c's "Frequency Data Plots" window is open.

From an xnec2c perspective, there is only a single frequency selected unless the frequency plots window is open. If it is open then it sweeps, but if it is closed it only calculates the selected frequency.

TODO: Maybe xnec2c can be configured to sweep if freqplots is open, or maybe just have it open freqplots automatically and click "play" when optimization is selected.

KJ7LNW commented 1 year ago

Fixed here:

https://github.com/KJ7LNW/xnec2c/commit/63f19392bb73de12a073da971e8bbd1f0846fad4