Conversation
A schematic block was created to run system commands once simulation is complete. The initial idea was to let the user to run a python script for postprocessing, but any command can be run with this approach
Added a condition to check the component is active
Collaborator
Author
|
I've checked this works on Windows |
Owner
|
I have just tested a new component. Everything works as expected. This may serve as modern replacement for existing Octave integration. See also #1247 and #887. I have found two minor issues:
|
As reported in the PR discussion, the dimensions of the selection box were wrong
Collaborator
Author
|
Thanks for your review. |
As suggested in the PR discussion, this commit adds shell highlighting in the command property editor.
…cessing [System Backend] Add examples on how to use the external postprocessing Python example (with virtual environment) Octave example
94309b2 to
16d5205
Compare
Collaborator
Author
Owner
|
This is ready for merge now. Merging. |
Collaborator
Author
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This pull request (PR) introduces a new component that executes system commands once the simulation has finished. This enables the user to run post-processing in their preferred language (or any other external commands). As far as I know, Qucs-S can only run Octave scripts after the simulation has finished.
I placed the new component under the Equations tab.
The properties of the component are:
IMPORTANT I tested this on Linux (Tuxedo OS). I'll check how it works on Windows once the CI has created the corresponding binaries.
Example
In the example attached, a LPF with finite Q components (qucsator) is simulated and a system-command block is added to compare the results with a simulation in scitkit-rf (ideal components)
SystemCommandFeatureTest_prj.zip
Python output
