Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Order of blocks in control section #706

Closed
dwarning opened this issue Apr 25, 2024 · 2 comments
Closed

Order of blocks in control section #706

dwarning opened this issue Apr 25, 2024 · 2 comments

Comments

@dwarning
Copy link

I got a problem to switch on model self-heating because the statements in Nutmeg script appears in the end of the control section.
Bildschirmfoto vom 2024-04-25 21-08-44

.control
let number_ib = 0
echo "STEP sw1.ib" > spice4qucs.sw1.cir.res
foreach ib_act 1e-05 2e-05 3e-05 4e-05 5e-05 6e-05 7e-05 8e-05 9e-05 0.0001
alter IB = $ib_act
dc vc 0 2 0.01
write spice4qucs.sw1._swp.plot v(B) v(C) v(Tj) i(VPr1)
set appendwrite
echo "$&number_ib $ib_act" >> spice4qucs.sw1.cir.res
let number_ib = number_ib + 1
end
pre_osdi hicumL2.osdi
altermod @hicumL2va[flsh]=1
.endc

Is there a mean to shift the both statements (especially altermod) in the beginning of the control section?

@dwarning
Copy link
Author

Answering myself: The order is dependent from schematic editing order. Place the the Nutmeg script block at first in an new schematic will show the both cmd's at first in the control block,
The problem that the altermod cmd is without effect because of the following reset:

.control


pre_osdi hicumL2.osdi

altermod @hicumL2va[flsh]=1

destroy all

reset

How can I setup altermod cmd wo following reset?

@ra3xdh
Copy link
Owner

ra3xdh commented Apr 26, 2024

There is no way to control the blocks order in Qucs-S. Furthermore the user must not interfere the automatic netlisting. Try using Include script or Spiceinit to put load libraries. Also you can rewrite the whole simulation as nutmeg script.

Repository owner locked and limited conversation to collaborators Apr 26, 2024
@ra3xdh ra3xdh converted this issue into discussion #707 Apr 26, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants